X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fflist.c;h=a79c842080801b9c34fdac207cdab76e722f35aa;hb=557d33aeabe46e9a0411959703f721c5b9ce2ae9;hp=0e2b16145a2deab0272e7de2639e7f1249f7dc70;hpb=1691e80890e5d8ba258c51c214a3e91880e1db2b;p=mmh diff --git a/uip/flist.c b/uip/flist.c index 0e2b161..a79c842 100644 --- a/uip/flist.c +++ b/uip/flist.c @@ -58,7 +58,7 @@ static struct swit switches[] = { #define VERSIONSW 13 { "version", 0 }, #define HELPSW 14 - { "help", 4 }, + { "help", 0 }, { NULL, 0 } }; @@ -232,9 +232,11 @@ main(int argc, char **argv) (size_t) (maxfolders * sizeof(*foldersToDo))))) adios (NULL, "unable to reallocate folder name storage"); } - if (*cp == '+') - ++cp; - foldersToDo[numfolders++] = cp; + if (*cp == '+' || *cp == '@') { + foldersToDo[numfolders++] = + path (cp + 1, *cp == '+' ? TFOLDER : TSUBCWF); + } else + foldersToDo[numfolders++] = cp; } } @@ -276,7 +278,7 @@ main(int argc, char **argv) ScanFolders(); qsort(folders, nFolders, sizeof(struct Folder), (qsort_comp) CompareFolders); PrintFolders(); - done (0); + return done (0); } /* @@ -695,10 +697,6 @@ do_readonly_folders (void) char atrcur[BUFSIZ]; register struct node *np; - /* sanity check - check that context has been read */ - if (defpath == NULL) - adios (NULL, "oops, context hasn't been read yet"); - snprintf (atrcur, sizeof(atrcur), "atr-%s-", current); atrlen = strlen (atrcur);