From 56b0892ba94ba93295ffe91d706f2e5bb9ec242c Mon Sep 17 00:00:00 2001 From: Burton Samograd Date: Mon, 28 Sep 2015 19:07:28 -0600 Subject: [PATCH 1/2] Ignore #file#, which are emacs temp work files. --- vere/unix.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vere/unix.c b/vere/unix.c index 7c111ac802..95c7f381d1 100644 --- a/vere/unix.c +++ b/vere/unix.c @@ -359,7 +359,10 @@ _unix_scan_mount_point(u3_umon* mon_u) else { if ( '.' != out_u->d_name[len_w] || '\0' == out_u->d_name[len_w + 1] - || '~' == out_u->d_name[strlen(out_u->d_name) - 1] ) { + || '~' == out_u->d_name[strlen(out_u->d_name) - 1] + || ('#' == out_u->d_name[0] && + '#' == out_u->d_name[strlen(out_u->d_name) - 1]) + ) { free(pax_c); continue; } @@ -895,6 +898,8 @@ _unix_update_dir(u3_udir* dir_u) if ( !S_ISDIR(buf_u.st_mode) ) { if ( !strchr(out_u->d_name,'.') || '~' == out_u->d_name[strlen(out_u->d_name) - 1] + || ('#' == out_u->d_name[0] && + '#' == out_u->d_name[strlen(out_u->d_name) - 1]) ) { free(pax_c); continue; From f870a09d9d8faecf41464a713e5ced773d78d923 Mon Sep 17 00:00:00 2001 From: Burton Samograd Date: Mon, 28 Sep 2015 19:10:22 -0600 Subject: [PATCH 2/2] Tabs -> spaces. --- vere/unix.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vere/unix.c b/vere/unix.c index 95c7f381d1..9998b94b4a 100644 --- a/vere/unix.c +++ b/vere/unix.c @@ -360,8 +360,8 @@ _unix_scan_mount_point(u3_umon* mon_u) if ( '.' != out_u->d_name[len_w] || '\0' == out_u->d_name[len_w + 1] || '~' == out_u->d_name[strlen(out_u->d_name) - 1] - || ('#' == out_u->d_name[0] && - '#' == out_u->d_name[strlen(out_u->d_name) - 1]) + || ('#' == out_u->d_name[0] && + '#' == out_u->d_name[strlen(out_u->d_name) - 1]) ) { free(pax_c); continue; @@ -899,7 +899,7 @@ _unix_update_dir(u3_udir* dir_u) if ( !strchr(out_u->d_name,'.') || '~' == out_u->d_name[strlen(out_u->d_name) - 1] || ('#' == out_u->d_name[0] && - '#' == out_u->d_name[strlen(out_u->d_name) - 1]) + '#' == out_u->d_name[strlen(out_u->d_name) - 1]) ) { free(pax_c); continue;