summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authormycroft <mycroft@NetBSD.org>1999-11-07 09:44:11 +0000
committermycroft <mycroft@NetBSD.org>1999-11-07 09:44:11 +0000
commit39b5cd452c7409cb43dcf4a3daad6582bc89dec6 (patch)
tree7a83bc52046d9ada5893a826d24778407b8a09d6 /bin
parentdefe7bd1192081cc0790b78f8e11a89f28fcdbee (diff)
Don't try to set file flags for a symlink.
Diffstat (limited to 'bin')
-rw-r--r--bin/pax/file_subs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/pax/file_subs.c b/bin/pax/file_subs.c
index be525fd7355..d568924d64d 100644
--- a/bin/pax/file_subs.c
+++ b/bin/pax/file_subs.c
@@ -1,4 +1,4 @@
-/* $NetBSD: file_subs.c,v 1.13 1999/11/01 01:35:58 mrg Exp $ */
+/* $NetBSD: file_subs.c,v 1.14 1999/11/07 09:44:11 mycroft Exp $ */
/*-
* Copyright (c) 1992 Keith Muller.
@@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)file_subs.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: file_subs.c,v 1.13 1999/11/01 01:35:58 mrg Exp $");
+__RCSID("$NetBSD: file_subs.c,v 1.14 1999/11/07 09:44:11 mycroft Exp $");
#endif
#endif /* not lint */
@@ -535,7 +535,7 @@ node_creat(arcn)
if (patime || pmtime)
set_ftime(arcn->name, arcn->sb.st_mtime, arcn->sb.st_atime, 0);
- if (pfflags)
+ if (pfflags && arcn->type != PAX_SLK)
set_chflags(arcn->name, arcn->sb.st_flags);
return(0);
}
@@ -799,7 +799,7 @@ void
set_chflags(char *fnm, u_int32_t flags)
#else
void
-set_pmode(fnm, flags)
+set_chflags(fnm, flags)
char *fnm;
u_int32_t flags;
#endif