Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/mtree explicitly chmod(2) newly created devices



details:   https://anonhg.NetBSD.org/src/rev/ef9a4903e280
branches:  trunk
changeset: 521720:ef9a4903e280
user:      lukem <lukem%NetBSD.org@localhost>
date:      Mon Feb 04 05:16:41 2002 +0000

description:
explicitly chmod(2) newly created devices

diffstat:

 usr.sbin/mtree/verify.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r e8d400c6cc73 -r ef9a4903e280 usr.sbin/mtree/verify.c
--- a/usr.sbin/mtree/verify.c   Mon Feb 04 03:32:16 2002 +0000
+++ b/usr.sbin/mtree/verify.c   Mon Feb 04 05:16:41 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: verify.c,v 1.27 2002/01/31 19:37:16 tv Exp $   */
+/*     $NetBSD: verify.c,v 1.28 2002/02/04 05:16:41 lukem Exp $        */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)verify.c   8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: verify.c,v 1.27 2002/01/31 19:37:16 tv Exp $");
+__RCSID("$NetBSD: verify.c,v 1.28 2002/02/04 05:16:41 lukem Exp $");
 #endif
 #endif /* not lint */
 
@@ -224,6 +224,9 @@
                                        printf(
                                            "%s: user/group not modified: %s\n",
                                            path, strerror(errno));
+                               if (chmod(path, p->st_mode))
+                                       printf("%s: permissions not set: %s\n",
+                                           path, strerror(errno));
                                continue;
                        case F_LINK:
                                if (!(p->flags & F_LINK))



Home | Main Index | Thread Index | Old Index