diff options
author | 1998-02-13 16:36:24 +0000 | |
---|---|---|
committer | 1998-02-13 16:36:24 +0000 | |
commit | 42d7fca10003717238b4fa614aa5f168c226d390 (patch) | |
tree | 5da4255553eada210d5b0270a8b1660f24b73db7 | |
parent | type botch (diff) | |
download | wireguard-openbsd-42d7fca10003717238b4fa614aa5f168c226d390.tar.xz wireguard-openbsd-42d7fca10003717238b4fa614aa5f168c226d390.zip |
Don't do chflags() if st_flags is zero. Fixes bogus error when
uncompressing on an NFS filesystem. Noted by hubertf@channel.regensburg.org
-rw-r--r-- | usr.bin/compress/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/compress/main.c b/usr.bin/compress/main.c index f293dbebf85..49ff1e263d3 100644 --- a/usr.bin/compress/main.c +++ b/usr.bin/compress/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.7 1997/08/19 06:32:36 denny Exp $ */ +/* $OpenBSD: main.c,v 1.8 1998/02/13 16:36:24 millert Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -41,7 +41,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)compress.c 8.2 (Berkeley) 1/7/94"; #else -static char rcsid[] = "$OpenBSD: main.c,v 1.7 1997/08/19 06:32:36 denny Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.8 1998/02/13 16:36:24 millert Exp $"; #endif #endif /* not lint */ @@ -489,7 +489,7 @@ setfile(name, fs) if (chmod(name, fs->st_mode)) warn("chown: %s", name); - if (chflags(name, fs->st_flags)) + if (fs->st_flags && chflags(name, fs->st_flags)) warn("chflags: %s", name); } |