Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/archivers/arj/files/patch-environ.c
16461 views
1
--- environ.c.orig 2004-06-18 16:19:36 UTC
2
+++ environ.c
3
@@ -2058,7 +2058,7 @@ FILE *file_open(char *name, char *mode)
4
/* ASR fix 01/10/2003 -- re-fix to handle umask 022 correctly */
5
if((handle=open(name, oflag, 0644))==-1)
6
return(NULL);
7
- if(fcntl(handle, F_SETLK, &flk)==-1&&errno!=EINVAL)
8
+ if(fcntl(handle, F_SETLK, &flk)==-1&&errno!=EINVAL&&errno!=ENOTSUP)
9
{
10
close(handle);
11
return(NULL);
12
13