diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2004-12-04 12:29:44 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2004-12-04 12:29:44 +0000 |
commit | 6f3b9bfdd1c52b0e244e5041e27d208aabac83f3 (patch) | |
tree | 25d71c69da2bc4d30adfa15c5699cc263e196087 | |
parent | c73761963b977b53be292f892e222220c2e6b78f (diff) | |
download | sshfs-6f3b9bfdd1c52b0e244e5041e27d208aabac83f3.tar sshfs-6f3b9bfdd1c52b0e244e5041e27d208aabac83f3.tar.gz sshfs-6f3b9bfdd1c52b0e244e5041e27d208aabac83f3.tar.bz2 sshfs-6f3b9bfdd1c52b0e244e5041e27d208aabac83f3.zip |
automakeify
-rw-r--r-- | .cvsignore | 15 | ||||
-rw-r--r-- | AUTHORS | 0 | ||||
-rw-r--r-- | ChangeLog | 0 | ||||
-rw-r--r-- | Makefile | 17 | ||||
-rw-r--r-- | Makefile.am | 4 | ||||
-rw-r--r-- | NEWS | 0 | ||||
-rw-r--r-- | README | 0 | ||||
-rw-r--r-- | configure.ac | 12 | ||||
-rw-r--r-- | sshfs.c | 4 |
9 files changed, 34 insertions, 18 deletions
diff --git a/.cvsignore b/.cvsignore new file mode 100644 index 0000000..c96a74b --- /dev/null +++ b/.cvsignore @@ -0,0 +1,15 @@ +.deps +COPYING +INSTALL +Makefile +Makefile.in +aclocal.m4 +*.cache +config.* +configure +depcomp +install-sh +missing +sshfs +stamp* +.deps diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/ChangeLog diff --git a/Makefile b/Makefile deleted file mode 100644 index 4741e6a..0000000 --- a/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -CC = gcc - -CFLAGS := -Wall -W -g -LDLIBS := -lpthread -ldl -rdynamic - -PKGCONFIG := env PKG_CONFIG_PATH=/usr/local/lib/pkgconfig pkg-config -CFLAGS += $(shell $(PKGCONFIG) --cflags fuse) -LDLIBS += $(shell $(PKGCONFIG) --libs fuse) -CFLAGS += $(shell $(PKGCONFIG) --cflags glib-2.0) -LDLIBS += $(shell $(PKGCONFIG) --libs glib-2.0) - -CPPFLAGS := -D_FILE_OFFSET_BITS=64 -D_REENTRANT - -sshfs: sshfs.o - -clean: - rm -f *.o sshfs diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..e8c3665 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,4 @@ +## Process this file with automake to produce Makefile.in + +bin_PROGRAMS = sshfs +sshfs_SOURCES = sshfs.c diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..bc70802 --- /dev/null +++ b/configure.ac @@ -0,0 +1,12 @@ +AC_INIT(sshfs-fuse, 0.9) +AM_INIT_AUTOMAKE +AM_CONFIG_HEADER(config.h) + +AC_PROG_CC +export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig +PKG_CHECK_MODULES(SSHFS, [fuse >= 2.2 glib-2.0]) +CFLAGS="-Wall -W -g -D_REENTRANT $SSHFS_CFLAGS" +LIBS="$SSHFS_LIBS" + +AC_CONFIG_FILES([Makefile]) +AC_OUTPUT @@ -1,3 +1,4 @@ +#define FUSE_USE_VERSION 22 #include <fuse.h> #include <stdio.h> #include <stdlib.h> @@ -1092,7 +1093,6 @@ static int sshfs_write(const char *path, const char *wbuf, size_t size, struct buffer buf; struct buffer data; struct buffer *handle = (struct buffer *) fi->fh; - (void) path; data.p = (uint8_t *) wbuf; data.len = size; buf_init(&buf, 0); @@ -1100,6 +1100,8 @@ static int sshfs_write(const char *path, const char *wbuf, size_t size, buf_add_uint64(&buf, offset); buf_add_data(&buf, &data); err = sftp_request(SSH_FXP_WRITE, &buf, SSH_FXP_STATUS, NULL); + if (!err) + cache_invalidate(path); buf_free(&buf); return err ? err : (int) size; } |