summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pgfuse.c5
-rw-r--r--tests/Makefile3
2 files changed, 2 insertions, 6 deletions
diff --git a/pgfuse.c b/pgfuse.c
index fe137fa..e62c414 100644
--- a/pgfuse.c
+++ b/pgfuse.c
@@ -1196,11 +1196,6 @@ static int pgfuse_rename( const char *from, const char *to )
return -EINVAL;
}
- /* TODO: enable also those cases later */
- if( S_ISLNK( from_meta.mode ) ) {
- return -EINVAL;
- }
-
copy_to = strdup( to );
if( copy_to == NULL ) {
syslog( LOG_ERR, "Out of memory in Rename '%s'!", to );
diff --git a/tests/Makefile b/tests/Makefile
index 020b2ce..3d09117 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -33,6 +33,7 @@ test: testfsync testpgsql
-mkdir mnt/dir/dir3
-mv mnt/dir/dir3 mnt/dir/dir4
-mv mnt/dir/dir2/afile mnt/dir/dir4/bfile
+ -mv mnt/dir/dir2/clink mnt/dir/dir4/dlink
# expect fail (directory not empty)
-rmdir mnt/dir
# expect fail (not a directory)
@@ -42,7 +43,7 @@ test: testfsync testpgsql
# show times of dirs, files and symlinks
-stat mnt/dir/dir4/bfile
-stat mnt/dir/dir4
- -stat mnt/dir/dir2/clink
+ -stat mnt/dir/dir4/dlink
# show filesystem stats (statvfs)
-stat -f mnt
# expect success, truncate a file (grow and shrink)