default uid/gid for nfsuserd.c

2017-04-21 Thread Rick Macklem
Hi, I just added GID_NOGROUP to sys/conf.h and fixed the initial values for nobody/nogroup in the kernel. However, UID_NOBODY and GID_NOGROUP are in the _KERNEL section of sys/conf.h, so they aren't visible in userland. So, how to I set the initial uid/gid values for nfsuserd.c? (nfsuserd.c

buildworld fails with warning in usr.bin/diff/diffreg.c

2017-04-21 Thread Hamza Sheikh
The error is: --- all_subdir_usr.bin --- cc1: warnings being treated as errors /home/vagrant/src/usr.bin/diff/diffreg.c: In function 'change': /home/vagrant/src/usr.bin/diff/diffreg.c:1085: warning: 'i' may be used uninitialized in this function --- all_subdir_share --- --- ucred.9.gz --- gzip

make check-old warnings

2017-04-21 Thread Renato Botelho
I've updated my laptop to r317256 and started to see some warnings when I run make check-old: ❯ make check-old make warning: $5bZ� : No such file or directory. make warning: $5bZ� : No such file or directory. >>> Checking for old files make warning: $5bZ� : No such file or directory. /usr/bin/gdb

Re: kernel coding of nobody/nogroup

2017-04-21 Thread Bruce Evans
On Fri, 21 Apr 2017, Rick Macklem wrote: I need to set the default uid/gid values for nobody/nogroup into kernel variables. I reverted the commit that hardcoded them, since I agree that wasn't a good thing to do. I didn't realize that "nobody" was already defined in sys/conf.h and I can use

kernel coding of nobody/nogroup

2017-04-21 Thread Rick Macklem
Hi, I need to set the default uid/gid values for nobody/nogroup into kernel variables. I reverted the commit that hardcoded them, since I agree that wasn't a good thing to do. I didn't realize that "nobody" was already defined in sys/conf.h and I can use that. There is no definition for