Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/rump_allserver Create backing image with mode 0644 i...



details:   https://anonhg.NetBSD.org/src/rev/95c6795d1f71
branches:  trunk
changeset: 761631:95c6795d1f71
user:      pooka <pooka%NetBSD.org@localhost>
date:      Thu Feb 03 11:25:27 2011 +0000

description:
Create backing image with mode 0644 instead of 0755 & document this.

diffstat:

 usr.bin/rump_allserver/rump_allserver.1 |  5 +++--
 usr.bin/rump_allserver/rump_allserver.c |  6 +++---
 2 files changed, 6 insertions(+), 5 deletions(-)

diffs (46 lines):

diff -r d23e26f080cd -r 95c6795d1f71 usr.bin/rump_allserver/rump_allserver.1
--- a/usr.bin/rump_allserver/rump_allserver.1   Thu Feb 03 11:21:43 2011 +0000
+++ b/usr.bin/rump_allserver/rump_allserver.1   Thu Feb 03 11:25:27 2011 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: rump_allserver.1,v 1.10 2011/02/03 11:21:43 pooka Exp $
+.\"    $NetBSD: rump_allserver.1,v 1.11 2011/02/03 11:25:27 pooka Exp $
 .\"
 .\" Copyright (c) 2010 Antti Kantee.  All rights reserved.
 .\"
@@ -105,7 +105,8 @@
 .Pp
 In case
 .Ar hostpath
-does not exist, it will be created as a regular file.
+does not exist, it will be created as a regular file with mode
+0644 (plus any restrictions placed by umask).
 In case
 .Ar hostpath
 is a regular file and is not large enough to accommodate the
diff -r d23e26f080cd -r 95c6795d1f71 usr.bin/rump_allserver/rump_allserver.c
--- a/usr.bin/rump_allserver/rump_allserver.c   Thu Feb 03 11:21:43 2011 +0000
+++ b/usr.bin/rump_allserver/rump_allserver.c   Thu Feb 03 11:25:27 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rump_allserver.c,v 1.14 2011/02/03 11:21:16 pooka Exp $        */
+/*     $NetBSD: rump_allserver.c,v 1.15 2011/02/03 11:25:27 pooka Exp $        */
 
 /*-
  * Copyright (c) 2010 Antti Kantee.  All Rights Reserved.
@@ -27,7 +27,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: rump_allserver.c,v 1.14 2011/02/03 11:21:16 pooka Exp $");
+__RCSID("$NetBSD: rump_allserver.c,v 1.15 2011/02/03 11:25:27 pooka Exp $");
 #endif /* !lint */
 
 #include <sys/types.h>
@@ -266,7 +266,7 @@
                int fd;
 
                fsize = etfs[i].foffset + etfs[i].flen;
-               fd = open(etfs[i].hostpath, O_RDWR | O_CREAT, 0755);
+               fd = open(etfs[i].hostpath, O_RDWR | O_CREAT, 0644);
                if (fd == -1)
                        die(sflag, errno, "etfs hostpath create");
                if (fstat(fd, &sb) == -1)



Home | Main Index | Thread Index | Old Index