diff options
author | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2005-04-17 16:07:17 +0000 |
---|---|---|
committer | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2005-04-17 16:07:17 +0000 |
commit | 5d625d52752063a162b9529b504a99894a4c8f8c (patch) | |
tree | cb69249592573262e8233fc673016d8b62b9266a | |
parent | 8fe5e932595142dc93cc78f151474f597dcfea6a (diff) |
use correct functions names in warn()
ok deraadt millert
-rw-r--r-- | usr.bin/compress/main.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/compress/main.c b/usr.bin/compress/main.c index 5e4ee3dd876..418a18f9696 100644 --- a/usr.bin/compress/main.c +++ b/usr.bin/compress/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.60 2005/04/14 18:28:27 deraadt Exp $ */ +/* $OpenBSD: main.c,v 1.61 2005/04/17 16:07:16 hshoexer Exp $ */ #ifndef SMALL static const char copyright[] = @@ -36,7 +36,7 @@ static const char license[] = #endif /* SMALL */ #ifndef SMALL -static const char main_rcsid[] = "$OpenBSD: main.c,v 1.60 2005/04/14 18:28:27 deraadt Exp $"; +static const char main_rcsid[] = "$OpenBSD: main.c,v 1.61 2005/04/17 16:07:16 hshoexer Exp $"; #endif #include <sys/param.h> @@ -692,7 +692,7 @@ setfile(const char *name, int fd, struct stat *fs) TIMESPEC_TO_TIMEVAL(&tv[0], &fs->st_atimespec); TIMESPEC_TO_TIMEVAL(&tv[1], &fs->st_mtimespec); if (futimes(fd, tv)) - warn("utimes: %s", name); + warn("futimes: %s", name); } /* @@ -715,14 +715,14 @@ setfile(const char *name, int fd, struct stat *fs) fs->st_mode &= S_ISUID|S_ISGID|S_IRWXU|S_IRWXG|S_IRWXO; if (fchown(fd, fs->st_uid, fs->st_gid)) { if (errno != EPERM) - warn("chown: %s", name); + warn("fchown: %s", name); fs->st_mode &= ~(S_ISUID|S_ISGID); } if (fchmod(fd, fs->st_mode)) - warn("chown: %s", name); + warn("fchmod: %s", name); if (fs->st_flags && fchflags(fd, fs->st_flags)) - warn("chflags: %s", name); + warn("fchflags: %s", name); } int |