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:
Pawel Jakub Dawidek 2009-06-03 09:24:58 +00:00
parent 2b2dc3a904
commit bf64a6b6b4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=193373

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: