diff options
Diffstat (limited to 'filesystems')
-rw-r--r-- | filesystems/fuse-archivemount/distinfo | 4 | ||||
-rw-r--r-- | filesystems/fuse-archivemount/patches/patch-ab | 38 |
2 files changed, 36 insertions, 6 deletions
diff --git a/filesystems/fuse-archivemount/distinfo b/filesystems/fuse-archivemount/distinfo index d4e3b764131..0a6bf3523eb 100644 --- a/filesystems/fuse-archivemount/distinfo +++ b/filesystems/fuse-archivemount/distinfo @@ -1,7 +1,7 @@ -$NetBSD: distinfo,v 1.1.1.1 2007/02/20 23:31:40 xtraeme Exp $ +$NetBSD: distinfo,v 1.2 2007/02/21 00:04:30 pooka Exp $ SHA1 (archivemount-0.5.3.tar.gz) = 68c1f59d665585d7fa4e763f87aeeaf6a368b009 RMD160 (archivemount-0.5.3.tar.gz) = 15d396ea8d78a55787f08046e3355d8d4fe564ad Size (archivemount-0.5.3.tar.gz) = 20267 bytes SHA1 (patch-aa) = c5e139ad695d8e6d102e35cd1d8110f3b952de6f -SHA1 (patch-ab) = 1866452689f1eb203eb0d021d15e605fee114acb +SHA1 (patch-ab) = 1db9404d0bfc48423e8869858f9d742a78e9a1c2 diff --git a/filesystems/fuse-archivemount/patches/patch-ab b/filesystems/fuse-archivemount/patches/patch-ab index e9ddb8bd234..6561b8a556b 100644 --- a/filesystems/fuse-archivemount/patches/patch-ab +++ b/filesystems/fuse-archivemount/patches/patch-ab @@ -1,7 +1,7 @@ -$NetBSD: patch-ab,v 1.1.1.1 2007/02/20 23:31:40 xtraeme Exp $ +$NetBSD: patch-ab,v 1.2 2007/02/21 00:04:30 pooka Exp $ ---- archivemount.c.orig 2006-12-28 16:32:47.000000000 +0100 -+++ archivemount.c 2007-02-21 00:25:25.000000000 +0100 +--- archivemount.c.orig 2006-12-28 17:32:47.000000000 +0200 ++++ archivemount.c 2007-02-21 02:02:55.000000000 +0200 @@ -31,7 +31,11 @@ #include <fcntl.h> #include <dirent.h> @@ -14,7 +14,37 @@ $NetBSD: patch-ab,v 1.1.1.1 2007/02/20 23:31:40 xtraeme Exp $ #include <sys/types.h> #include <sys/stat.h> #include <time.h> -@@ -1605,7 +1609,11 @@ +@@ -1449,11 +1453,24 @@ + return tmp; + } + /* create temp file */ +- if( mknod( location, mode, rdev ) == -1 ) { +- log( "Could not create temporary file %s: %s", +- location, strerror( errno ) ); +- free( location ); +- return 0 - errno; ++ if( S_ISREG(mode) ) { ++ int fd; ++ ++ if( fd = ( open( location, O_WRONLY | O_CREAT | O_EXCL, ++ mode) == -1 ) ) { ++ log( "Could not create temporary file %s: %s", ++ location, strerror( errno ) ); ++ free( location ); ++ return 0 - errno; ++ } ++ close( fd ); ++ } else { ++ if( mknod( location, mode, rdev ) == -1 ) { ++ log( "Could not create temporary file %s: %s", ++ location, strerror( errno ) ); ++ free( location ); ++ return 0 - errno; ++ } + } + /* build node */ + node = ( NODE * )malloc( sizeof( NODE ) ); +@@ -1605,7 +1622,11 @@ } static int |