pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/pkgtools/libnbcompat/files
Module Name: pkgsrc
Committed By: tnn
Date: Mon Aug 5 11:07:20 UTC 2024
Modified Files:
pkgsrc/pkgtools/libnbcompat/files: lchflags.c
Log Message:
libnbcompat: properly set errno in previous
This is not a syscall handler ...
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/pkgtools/libnbcompat/files/lchflags.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/pkgtools/libnbcompat/files/lchflags.c
diff -u pkgsrc/pkgtools/libnbcompat/files/lchflags.c:1.5 pkgsrc/pkgtools/libnbcompat/files/lchflags.c:1.6
--- pkgsrc/pkgtools/libnbcompat/files/lchflags.c:1.5 Mon Aug 5 10:57:08 2024
+++ pkgsrc/pkgtools/libnbcompat/files/lchflags.c Mon Aug 5 11:07:20 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: lchflags.c,v 1.5 2024/08/05 10:57:08 tnn Exp $ */
+/* $NetBSD: lchflags.c,v 1.6 2024/08/05 11:07:20 tnn Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -49,7 +49,8 @@ lchflags(const char *path, unsigned long
return 0;
}
#if defined(__linux__)
- return ENOSYS;
+ errno = (path == NULL ? EINVAL : ENOSYS);
+ return -1;
#else
return (chflags(path, flags));
#endif
Home |
Main Index |
Thread Index |
Old Index