diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-01-11 21:54:28 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-01-11 21:54:28 +0000 |
commit | b7638b438d0fa197ccaed99135223e1d7e285139 (patch) | |
tree | 962a618a126d21c8687e38b51a95454d403070a4 /sbin/sysctl/pathconf.c | |
parent | 12e70f4d7ccb40ecfae9219237a94949e22bfb09 (diff) |
Print output as "var=value" instead of "var = value". Also, any assignment
implies -w. I have despised the existing behaviour for years. ok from
henning, millert, grange
Diffstat (limited to 'sbin/sysctl/pathconf.c')
-rw-r--r-- | sbin/sysctl/pathconf.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sbin/sysctl/pathconf.c b/sbin/sysctl/pathconf.c index 4f9e725bc27..87d24adedaa 100644 --- a/sbin/sysctl/pathconf.c +++ b/sbin/sysctl/pathconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pathconf.c,v 1.7 2003/06/02 20:06:17 millert Exp $ */ +/* $OpenBSD: pathconf.c,v 1.8 2004/01/11 21:54:27 deraadt Exp $ */ /* $NetBSD: pathconf.c,v 1.2 1995/09/30 07:12:47 thorpej Exp $ */ /* @@ -40,7 +40,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)pathconf.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: pathconf.c,v 1.7 2003/06/02 20:06:17 millert Exp $"; +static char rcsid[] = "$OpenBSD: pathconf.c,v 1.8 2004/01/11 21:54:27 deraadt Exp $"; #endif #endif /* not lint */ @@ -78,6 +78,8 @@ struct list pclist = { pcnames, PC_MAXID }; int Aflag, aflag, nflag, wflag, stdinflag; +char *equ = " = "; + int main(int argc, char *argv[]) { @@ -181,7 +183,7 @@ parse(char *pathname, char *string, int flags) } } if (!nflag) - fprintf(stdout, "%s = ", string); + fprintf(stdout, "%s%s", string, equ); fprintf(stdout, "%d\n", value); } |