Author: pjd Date: Wed Dec 19 12:14:08 2012 New Revision: 244429 URL: http://svnweb.freebsd.org/changeset/base/244429
Log: The 'flags' argument can be modified in vn_open_cred(), so we need to set it for every loop interation. Pointed out by: kib Modified: head/sys/kern/kern_sig.c Modified: head/sys/kern/kern_sig.c ============================================================================== --- head/sys/kern/kern_sig.c Wed Dec 19 12:12:53 2012 (r244428) +++ head/sys/kern/kern_sig.c Wed Dec 19 12:14:08 2012 (r244429) @@ -3125,12 +3125,12 @@ expand_name(const char *comm, uid_t uid, struct nameidata nd; int cmode, flags, oflags, error; - flags = O_CREAT | O_EXCL | FWRITE | O_NOFOLLOW; cmode = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP; oflags = VN_OPEN_NOAUDIT | (capmode_coredump ? VN_OPEN_NOCAPCHECK : 0); for (i = 0; i < num_cores; i++) { + flags = O_CREAT | O_EXCL | FWRITE | O_NOFOLLOW; name[indexpos] = '0' + i; NDINIT(&nd, LOOKUP, NOFOLLOW, UIO_SYSSPACE, name, td); _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"