Bug locating path for linux_mkdir

Marcin Cieslak saper at saper.info
Sun Sep 10 06:58:38 PDT 2006


Steve,

Unfortunately I can't reproduce your problem using my test case,
can you try it or do you have some more hints?

saperski% sudo rm -rf /root/.test
saperski% cat test.c
#include <stdio.h>

int main() {
         if (mkdir("/root/.test", 0511) < 0)
                 perror("mkdir 1");
         if (mkdir("/root/.test/test2/", 0511) < 0)
                 perror("mkdir 2");
}
saperski% /compat/linux/usr/bin/gcc -o test test.c
saperski% sudo ./test
saperski% sudo env LANG=C find /root/.test -ls
  16577        4 dr-x--x--x    3 root             wheel 
512 Sep 10 15:52 /root/.test
  16634        4 dr-x--x--x    2 root             wheel 
512 Sep 10 15:52 /root/.test/test2
saperski% umask
022
saperski% uname -a
FreeBSD saperski.saper.info 6.1-STABLE FreeBSD 6.1-STABLE #1: Sat Sep  9 
22:26:02 CEST 2006 
saper at saperski.saper.info:/usr/obj/usr/src/sys/VAIO  i386

Using linux_base-fc-4_6

-- 
               << Marcin Cieslak // saper at saper.info >>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3175 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.freebsd.org/pipermail/freebsd-emulation/attachments/20060910/e974ceca/smime.bin


More information about the freebsd-emulation mailing list