Deleted Added
full compact
restore.c (98542) restore.c (102231)
1/*
2 * Copyright (c) 1983, 1993
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

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

31 * SUCH DAMAGE.
32 */
33
34#ifndef lint
35#if 0
36static char sccsid[] = "@(#)restore.c 8.3 (Berkeley) 9/13/94";
37#endif
38static const char rcsid[] =
1/*
2 * Copyright (c) 1983, 1993
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

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

31 * SUCH DAMAGE.
32 */
33
34#ifndef lint
35#if 0
36static char sccsid[] = "@(#)restore.c 8.3 (Berkeley) 9/13/94";
37#endif
38static const char rcsid[] =
39 "$FreeBSD: head/sbin/restore/restore.c 98542 2002-06-21 06:18:05Z mckusick $";
39 "$FreeBSD: head/sbin/restore/restore.c 102231 2002-08-21 18:11:48Z trhodes $";
40#endif /* not lint */
41
42#include <sys/types.h>
43
44#include <stdio.h>
45#include <string.h>
46
47#include <ufs/ufs/dinode.h>

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

320 freeentry(np);
321 } else {
322 mktempname(np);
323 }
324 /* fall through */
325
326 /*
327 * A previously non-existent file.
40#endif /* not lint */
41
42#include <sys/types.h>
43
44#include <stdio.h>
45#include <string.h>
46
47#include <ufs/ufs/dinode.h>

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

320 freeentry(np);
321 } else {
322 mktempname(np);
323 }
324 /* fall through */
325
326 /*
327 * A previously non-existent file.
328 * Add it to the filesystem, and request its extraction.
328 * Add it to the file system, and request its extraction.
329 * If it is a directory, create it immediately.
330 * (Since the name is unused there can be no conflict)
331 */
332 case ONTAPE:
333 ep = addentry(name, ino, type);
334 if (type == NODE)
335 newnode(ep);
336 ep->e_flags |= NEW|KEEP;

--- 513 unchanged lines hidden ---
329 * If it is a directory, create it immediately.
330 * (Since the name is unused there can be no conflict)
331 */
332 case ONTAPE:
333 ep = addentry(name, ino, type);
334 if (type == NODE)
335 newnode(ep);
336 ep->e_flags |= NEW|KEEP;

--- 513 unchanged lines hidden ---