git.annexia.org
/
febootstrap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6066c3e
)
helper: Ignore editor backup (*~) files.
author
Richard Jones
<rjones@redhat.com>
Fri, 27 Aug 2010 16:04:53 +0000
(17:04 +0100)
committer
Richard Jones
<rjones@redhat.com>
Fri, 27 Aug 2010 16:11:48 +0000
(17:11 +0100)
helper/appliance.c
patch
|
blob
|
history
diff --git
a/helper/appliance.c
b/helper/appliance.c
index
e014b12
..
85efd75
100644
(file)
--- a/
helper/appliance.c
+++ b/
helper/appliance.c
@@
-144,6
+144,11
@@
iterate_input_directory (const char *dirname, int dirfd, struct writer *writer)
if (d->d_name[0] == '.') /* ignore ., .. and any hidden files. */
continue;
+ /* Ignore *~ files created by editors. */
+ size_t len = strlen (d->d_name);
+ if (len > 0 && d->d_name[len-1] == '~')
+ continue;
+
add_string (&entries, &nr_entries, &nr_alloc, d->d_name);
}