mount.c (74cf460b66ae8859c4fdd345e61909b677b3a977) mount.c (7c506958f1d824928f0dcfc55d31bd510f9db0ba)
1/*
2 * Copyright (c) 1980, 1989, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 338 unchanged lines hidden (view full) ---

347 if (debug) {
348 (void)printf("exec: mount_%s", vfstype);
349 for (i = 1; i < argc; i++)
350 (void)printf(" %s", argv[i]);
351 (void)printf("\n");
352 return (0);
353 }
354
1/*
2 * Copyright (c) 1980, 1989, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 338 unchanged lines hidden (view full) ---

347 if (debug) {
348 (void)printf("exec: mount_%s", vfstype);
349 for (i = 1; i < argc; i++)
350 (void)printf(" %s", argv[i]);
351 (void)printf("\n");
352 return (0);
353 }
354
355 switch (pid = vfork()) {
355 switch (pid = fork()) {
356 case -1: /* Error. */
356 case -1: /* Error. */
357 warn("vfork");
357 warn("fork");
358 free(optbuf);
359 return (1);
360 case 0: /* Child. */
361 if (strcmp(vfstype, "ufs") == 0)
362 exit(mount_ufs(argc, (char * const *) argv));
363
364 /* Go find an executable. */
365 for (edir = edirs; *edir; edir++) {

--- 192 unchanged lines hidden ---
358 free(optbuf);
359 return (1);
360 case 0: /* Child. */
361 if (strcmp(vfstype, "ufs") == 0)
362 exit(mount_ufs(argc, (char * const *) argv));
363
364 /* Go find an executable. */
365 for (edir = edirs; *edir; edir++) {

--- 192 unchanged lines hidden ---