diff options
author | pst <pst@FreeBSD.org> | 1996-02-08 06:17:50 +0000 |
---|---|---|
committer | pst <pst@FreeBSD.org> | 1996-02-08 06:17:50 +0000 |
commit | dd9709123aac2941d6115406b2cf5cc3c2a3f974 (patch) | |
tree | 78082c028a420082929150cdec0d9618a099e13d /usr.bin | |
parent | bfcdc42403abadbcd87e8379b56b6f7aceaa17ab (diff) | |
download | FreeBSD-src-dd9709123aac2941d6115406b2cf5cc3c2a3f974.zip FreeBSD-src-dd9709123aac2941d6115406b2cf5cc3c2a3f974.tar.gz |
Kludge-fix for a specific instance of bin/517.
The real fix requires changes to getpwent(3) and friends and getgrent(3)
and friends.
Submitted by: Tim Wilkinson
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/xinstall/xinstall.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/xinstall/xinstall.c b/usr.bin/xinstall/xinstall.c index eeae7da..24ed628 100644 --- a/usr.bin/xinstall/xinstall.c +++ b/usr.bin/xinstall/xinstall.c @@ -40,7 +40,7 @@ static const char copyright[] = #ifndef lint /*static char sccsid[] = "From: @(#)xinstall.c 8.1 (Berkeley) 7/21/93";*/ static const char rcsid[] = - "$Id$"; + "$Id: xinstall.c,v 1.4 1995/10/09 07:21:00 bde Exp $"; #endif /* not lint */ /*- @@ -156,10 +156,10 @@ main(argc, argv) usage(); /* get group and owner id's */ - if (group && !(gp = getgrnam(group))) - errx(EX_NOUSER, "unknown group %s", group); if (owner && !(pp = getpwnam(owner))) errx(EX_NOUSER, "unknown user %s", owner); + if (group && !(gp = getgrnam(group))) + errx(EX_NOUSER, "unknown group %s", group); no_target = stat(to_name = argv[argc - 1], &to_sb); if (!no_target && (to_sb.st_mode & S_IFMT) == S_IFDIR) { |