Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master castfs by Vlad Glagolev (d1329c95fba1ad5cb087ca7d5b731f834c694d60)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Vlad Glagolev <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master castfs by Vlad Glagolev (d1329c95fba1ad5cb087ca7d5b731f834c694d60)
  • Date: Sun, 9 Sep 2012 15:52:30 -0500

GIT changes to master castfs by Vlad Glagolev <stealth AT sourcemage.org>:

ChangeLog | 3 +++
src/castfs.c | 8 +++++++-
2 files changed, 10 insertions(+), 1 deletion(-)

New commits:
commit d1329c95fba1ad5cb087ca7d5b731f834c694d60
Author: Vlad Glagolev <stealth AT sourcemage.org>
Commit: Vlad Glagolev <stealth AT sourcemage.org>

fixed segfault, when running without any arguments

diff --git a/ChangeLog b/ChangeLog
index 81b2441..28a49b2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2012-09-10 Vlad Glagolev <stealth AT sourcemage.org>
+ * src/castfs.c: fixed segfault, when running without any arguments
+
2010-03-29 Eric Sandall <sandalle AT sourcemage.org>
* configure.in: Look for architecture-dependent files under
exec_prefix
A recent change to fuse (d70e16cda5b272573220c2df4e52655447eee04e in
diff --git a/src/castfs.c b/src/castfs.c
index ecb136e..3211789 100644
--- a/src/castfs.c
+++ b/src/castfs.c
@@ -727,6 +727,12 @@ int main(int argc, char *argv[], char *env[])
/* get environmental vars and open fd's for log file */
umask(0);

+ if (argc == 1) {
+ fprintf(stderr, "castfs: no arguments given\n");
+ usage();
+ exit(-1);
+ }
+
if(strcmp(argv[1], "--version") == 0 || strcmp(argv[1], "-v") == 0) {
fprintf(stdout, "castfs: version 0.6-git\n"); /* FIXME: s/b
dynamic */
exit(0);
@@ -762,7 +768,7 @@ int main(int argc, char *argv[], char *env[])

/* Currently, need: `castfs mnt-dir -o stage=stage-dir` */
if (argc < 4) {
-fprintf(stderr, "castfs: argc wrong\n");
+ fprintf(stderr, "castfs: argc wrong\n");
usage();
exit(-1);
}



  • [SM-Commit] GIT changes to master castfs by Vlad Glagolev (d1329c95fba1ad5cb087ca7d5b731f834c694d60), Vlad Glagolev, 09/09/2012

Archive powered by MHonArc 2.6.24.

Top of Page