X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=helper%2Fappliance.c;h=85efd756e74472c312d81a477d78550277045b9b;hb=refs%2Ftags%2F3.4;hp=e014b126626980473a299f593bcf036a5d0303e6;hpb=6066c3e245a28b55dd1c02d2dd1b524d83068ef3;p=febootstrap.git diff --git a/helper/appliance.c b/helper/appliance.c index e014b12..85efd75 100644 --- 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); }