lchflags(2) takes int, not u_long like chflags(2) and fchflags(2).

Strange, isn't it?

Pointed out by:	bde
This commit is contained in:
pjd 2009-06-03 09:24:58 +00:00
parent 175683deec
commit f0fa176da8

View File

@ -499,7 +499,7 @@ call_syscall(struct syscall_desc *scall, char *argv[])
#endif
#ifdef HAS_LCHFLAGS
case ACTION_LCHFLAGS:
rval = lchflags(STR(0), (unsigned long)str2flags(chflags_flags, STR(1)));
rval = lchflags(STR(0), (int)str2flags(chflags_flags, STR(1)));
break;
#endif
case ACTION_TRUNCATE: