+void check_source(char *source) {
+ source[arg_length-1]='\0';
+ if (strchr(source,'/') || strstr(source,"..")) {
+ printf("Tried mounting with source = %s\n", source);
+ exit(1);
+ }
+}
+
+void check_target(char *target) {
+ target[arg_length-1]='\0';
+ if (strstr(target,"..")) {
+ printf("Tried mounting with target = %s\n", target);
+ exit(1);
+ }
+}
+
+void check_fstype(char *filesystemtype) {
+ if (strncmp(filesystemtype,"fuse",4)) {
+ printf("Tried mounting filesystem type %s\n", filesystemtype);
+ }
+}
+