NetBSD-Bugs archive

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

Re: port-i386/51358: /usr/bin/cvs fakes file permissions



The following reply was made to PR port-i386/51358; it has been noted by GNATS.

From: Richard PALO <richard%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: port-i386/51358: /usr/bin/cvs fakes file permissions
Date: Sun, 31 Jul 2016 22:52:24 +0200

 Le 31/07/16 22:35, David Holland a écrit :
 > The following reply was made to PR port-i386/51358; it has been noted by GNATS.
 > 
 > From: David Holland <dholland-bugs%netbsd.org@localhost>
 > To: gnats-bugs%NetBSD.org@localhost
 > Cc: 
 > Subject: Re: port-i386/51358: /usr/bin/cvs fakes file permissions
 > Date: Sun, 31 Jul 2016 20:32:17 +0000
 > 
 >  On Sun, Jul 31, 2016 at 08:20:01PM +0000, Richard PALO wrote:
 >   >  >  sure, but as it is it ought to work, and it does for me, including in
 >   >  >  an i386 chroot...
 >   >  
 >   >  ?? how is that possible?
 >  
 >  Depends on what broke your case...
 >  
 >  ...are you maybe using a volume mounted noexec or something like that?
 >  
 >   >  can I see a log from an unprivileged build for xproto and json-c,
 >   >  for example?  and ls -la for /usr/pkgsrc/mk/gnu-config
 >  
 >  There isn't any need to build, because the files get the right
 >  permissions:
 >  
 >  macaran% uname -a
 >  NetBSD macaran 7.99.30 NetBSD 7.99.30 (MACARAN) #39: Tue Jun  7 15:26:15 EDT 2016
 >  dholland@macaran:/usr/src/sys/arch/amd64/compile/MACARAN i386
 >  macaran% mkdir /tmp/x
 >  macaran% cd /tmp/x
 >  macaran% cvs -q checkout pkgsrc/mk
 >  U pkgsrc/mk/alternatives.mk
 >     [...]
 >  U pkgsrc/mk/wrapper/wrapper.sh
 >  macaran% ls -l pkgsrc/mk/gnu-config/
 >  total 122
 >  drwx------  2 dholland  wheel    512 Jul 31 20:29 CVS
 >  -rwx------  1 dholland  wheel  43423 Jun  3  2015 config.guess
 >  -rwx------  1 dholland  wheel  36087 Jun  3  2015 config.sub
 >  -rw-------  1 dholland  wheel  29308 Feb 20  2004 libtool-1.4.m4
 >  -rwx------  1 dholland  wheel  10179 Sep 30  2013 missing
 >  macaran% 
 >  
 >  -- 
 >  David A. Holland
 >  dholland%netbsd.org@localhost
 >  
 > 
 
 I'm on barebones i386 with /usr on /:
 > nb32$ uname -a
 > NetBSD nb32.xxxx.fr 7.99.34 NetBSD 7.99.34 (GEN.nb32) #2: Sun Jul 31 09:59:20 CEST 2016  richard%nb32.xxxx.fr@localhost:/usr/objdir/sys/arch/i386/compile/GEN.nb32 i386
 > nb32$ cat /etc/fstab 
 > # NetBSD /targetroot/etc/fstab
 > # See /usr/share/examples/fstab/ for more examples.
 > /dev/wd0a               /       ffs     rw,log           1 1
 > /dev/wd0b               none    swap    sw,dp            0 0
 > kernfs          /kern   kernfs  rw
 > ptyfs           /dev/pts        ptyfs   rw
 > procfs          /proc   procfs  rw
 > /dev/cd0a               /cdrom  cd9660  ro,noauto
 > tmpfs           /var/shm        tmpfs   rw,-m1777,-sram%25
 > nb32$ id
 > uid=1000(richard) gid=100(users) groups=100(users),0(wheel)
 > nb32$ mkdir /tmp/x
 > nb32$ cd /tmp/x
 > nb32$ CVSROOT=anoncvs%anoncvs.fr.NetBSD.org@localhost:/cvsroot cvs -q checkout pkgsrc/mk/gnu-config
 > U pkgsrc/mk/gnu-config/config.guess
 > U pkgsrc/mk/gnu-config/config.sub
 > U pkgsrc/mk/gnu-config/libtool-1.4.m4
 > U pkgsrc/mk/gnu-config/missing
 > nb32$ ls -l pkgsrc/
 > pkgsrc/CVS pkgsrc/mk 
 > nb32$ ls -l pkgsrc/mk/
 > pkgsrc/mk/CVS        pkgsrc/mk/gnu-config
 > nb32$ ls -l pkgsrc/mk/gnu-config/
 > total 244
 > drwxr-xr-x  2 richard  wheel    512 Jul 31 22:47 CVS
 > -rw-r--r--  1 richard  wheel  43423 Jun  3  2015 config.guess
 > -rw-r--r--  1 richard  wheel  36087 Jun  3  2015 config.sub
 > -rw-r--r--  1 richard  wheel  29308 Feb 20  2004 libtool-1.4.m4
 > -rw-r--r--  1 richard  wheel  10179 Sep 30  2013 missing
 
 There is a clear difference in execution permissions
 -- 
 Richard PALO
 


Home | Main Index | Thread Index | Old Index