Skip to contentSkip to conversation

sys_chown vs. sys_lchown

DISCUSSION Florian Lohoff 1 participant 2 messages Apr 17, 2000 1 message not in the archive MIPS

lore
Share & tools
lore
#0 lore raw

Hi,
i have discovered some interesting things concerning the chown/lchown syscall:

gcc -O2 -s -o usermod usermod.o ../libmisc/libmisc.a ../lib/libshadow.a -lcrypt ../libmisc/libmisc.a(chowndir.o): In function `chown_tree':
chowndir.c(.text+0x248): warning: lchown is not implemented and will always fail

I discovered a anomaly there when trying to compile current strace which has sys_lchown which is sys_chown in current glibc and fails to compile thereof.

I am not shure where the actual problem is but there is someone more knowledged ...

Flo

Signature · 3 lines
Florian Lohoff		[email protected]		      	+49-subject-2-change
"Technology is a constant battle between manufacturers producing bigger and
more idiot-proof systems and nature producing bigger and better idiots."

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 8 lines · Wichert Akkerman
Quoted 3 lines · Previously Florian Lohoff

I discovered a anomaly there when trying to compile current strace which has sys_lchown which is sys_chown in current glibc and fails to compile thereof.

strace got that from include/asm-mips/unistd.h from a 2.3.99pre5 kernel tree, which should be authoritive. Are you sure that your glibc is compiled correctly?

;) As this is made by Ralf Baechle the "Master himself" ill trust that :)

Flo

Signature · 3 lines
Florian Lohoff		[email protected]		      	+49-subject-2-change
"Technology is a constant battle between manufacturers producing bigger and
more idiot-proof systems and nature producing bigger and better idiots."