Deleted Added
full compact
cdrom.c (8807) cdrom.c (8837)
1/*
2 * The new sysinstall program.
3 *
4 * This is probably the last attempt in the `sysinstall' line, the next
5 * generation being slated to essentially a complete rewrite.
6 *
1/*
2 * The new sysinstall program.
3 *
4 * This is probably the last attempt in the `sysinstall' line, the next
5 * generation being slated to essentially a complete rewrite.
6 *
7 * $Id: cdrom.c,v 1.3 1995/05/28 03:04:46 jkh Exp $
7 * $Id: cdrom.c,v 1.4 1995/05/28 07:05:21 phk Exp $
8 *
9 * Copyright (c) 1995
10 * Jordan Hubbard. All rights reserved.
11 * Copyright (c) 1995
12 * Gary J Palmer. All rights reserved.
13 *
14 * Redistribution and use in source and binary forms, with or without
15 * modification, are permitted provided that the following conditions

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

67 struct stat sb;
68
69 if (cdromMounted)
70 return TRUE;
71
72 if (Mkdir("/cdrom", NULL))
73 return FALSE;
74
8 *
9 * Copyright (c) 1995
10 * Jordan Hubbard. All rights reserved.
11 * Copyright (c) 1995
12 * Gary J Palmer. All rights reserved.
13 *
14 * Redistribution and use in source and binary forms, with or without
15 * modification, are permitted provided that the following conditions

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

67 struct stat sb;
68
69 if (cdromMounted)
70 return TRUE;
71
72 if (Mkdir("/cdrom", NULL))
73 return FALSE;
74
75 bzero(&args, sizeof(args));
75 args.fspec = dev->devname;
76 args.flags = 0;
77
78 if (mount(MOUNT_CD9660, "/cdrom", MNT_RDONLY, (caddr_t) &args) == -1) {
79 msgConfirm("Error mounting %s on /cdrom: %s (%u)\n", dev, strerror(errno), errno);
80 return FALSE;
81 }
82

--- 43 unchanged lines hidden ---
76 args.fspec = dev->devname;
77 args.flags = 0;
78
79 if (mount(MOUNT_CD9660, "/cdrom", MNT_RDONLY, (caddr_t) &args) == -1) {
80 msgConfirm("Error mounting %s on /cdrom: %s (%u)\n", dev, strerror(errno), errno);
81 return FALSE;
82 }
83

--- 43 unchanged lines hidden ---