Permalink
Browse files

include check for updater program

  • Loading branch information...
1 parent eaf1278 commit 20d82df3dbba1691bf567b8620a6c6dede16649e @Hexasoft Hexasoft committed Aug 30, 2011
Showing with 10 additions and 0 deletions.
  1. +10 −0 webfs.c
View
10 webfs.c
@@ -943,6 +943,16 @@ int main(int argc, char *argv[])
}
}
+ /* check: if using a updater program for metadata file,
+ this one must be set with --metafile */
+ if ((url_metadata[0] == '@')&&(mo.metafile == NULL)) {
+ fprintf(stderr, "Problem: you set a updater program name, but you\n"
+ "did not set a name for the local metafil (--metafile option), so\n"
+ "you program has no way to know which file to update.\n"
+ "Abort.\n");
+ exit(8);
+ }
+
/* temp file to get the metadata for filesystem */
/* does user gives a metafile name? */
tpl[0] = '\0';

0 comments on commit 20d82df

Please sign in to comment.