diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-06-27 19:02:55 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-06-27 19:02:55 +0000 |
commit | 9f6f3aafbecfe6a08c1ac97ff617b05ab8b83e4c (patch) | |
tree | 5b7677f92e61a91e0b1cdd74e922b0fd996a1d30 /usr.sbin | |
parent | 9fe77c1af108cc57635c17d5c4205479db4fedcd (diff) |
setlocale; kleink
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/chown/chown.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/chown/chown.c b/usr.sbin/chown/chown.c index ae7bab45194..ec3e8ae6842 100644 --- a/usr.sbin/chown/chown.c +++ b/usr.sbin/chown/chown.c @@ -1,4 +1,4 @@ -/* $OpenBSD: chown.c,v 1.5 1997/05/31 06:14:29 deraadt Exp $ */ +/* $OpenBSD: chown.c,v 1.6 1997/06/27 19:02:09 deraadt Exp $ */ /* * Copyright (c) 1988, 1993, 1994 @@ -41,7 +41,7 @@ static char copyright[] = #ifndef lint /* from: static char sccsid[] = "@(#)chown.c 8.8 (Berkeley) 4/4/94"; */ -static char *rcsid = "$Id: chown.c,v 1.5 1997/05/31 06:14:29 deraadt Exp $"; +static char *rcsid = "$Id: chown.c,v 1.6 1997/06/27 19:02:09 deraadt Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -80,6 +80,8 @@ main(argc, argv) int Hflag, Lflag, Pflag, ch, fts_options, hflag, rval; char *cp; + setlocale(LC_ALL, ""); + myname = (cp = strrchr(*argv, '/')) ? cp + 1 : *argv; ischown = myname[2] == 'o'; |