Author: pjd
Date: Wed Jan  4 07:21:37 2012
New Revision: 229467
URL: http://svn.freebsd.org/changeset/base/229467

Log:
  Add an missing argument to open(2). If O_CREAT flag is specified,
  file permission has to be specified as well.

Modified:
  head/usr.sbin/uhsoctl/uhsoctl.c

Modified: head/usr.sbin/uhsoctl/uhsoctl.c
==============================================================================
--- head/usr.sbin/uhsoctl/uhsoctl.c     Wed Jan  4 07:04:43 2012        
(r229466)
+++ head/usr.sbin/uhsoctl/uhsoctl.c     Wed Jan  4 07:21:37 2012        
(r229467)
@@ -455,7 +455,7 @@ set_nameservers(struct ctx *ctx, const c
                free(ctx->ns);
        }
 
-       fd = open(respath, O_RDWR | O_CREAT | O_NOFOLLOW);
+       fd = open(respath, O_RDWR | O_CREAT | O_NOFOLLOW, 0666);
        if (fd < 0)
                return (-1);
 
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to