utilities.c (70050) | utilities.c (70166) |
---|---|
1/* 2 * Copyright (c) 1980, 1986, 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 const char sccsid[] = "@(#)utilities.c 8.6 (Berkeley) 5/19/95"; 37#endif 38static const char rcsid[] = | 1/* 2 * Copyright (c) 1980, 1986, 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 const char sccsid[] = "@(#)utilities.c 8.6 (Berkeley) 5/19/95"; 37#endif 38static const char rcsid[] = |
39 "$FreeBSD: head/sbin/fsck_ffs/utilities.c 70050 2000-12-15 14:23:55Z iedowse $"; | 39 "$FreeBSD: head/sbin/fsck_ffs/utilities.c 70166 2000-12-18 21:14:25Z phk $"; |
40#endif /* not lint */ 41 42#include <sys/param.h> 43#include <sys/types.h> 44#include <sys/stat.h> 45 46#include <ufs/ufs/dinode.h> 47#include <ufs/ufs/dir.h> --- 34 unchanged lines hidden (view full) --- 82 if (retried) 83 break; 84 85 len = strlen(origname) - 1; 86 if (len > 0 && origname[len] == '/') 87 /* remove trailing slash */ 88 origname[len] = '\0'; 89 if ((fsinfo = getfsfile(origname)) == NULL) { | 40#endif /* not lint */ 41 42#include <sys/param.h> 43#include <sys/types.h> 44#include <sys/stat.h> 45 46#include <ufs/ufs/dinode.h> 47#include <ufs/ufs/dir.h> --- 34 unchanged lines hidden (view full) --- 82 if (retried) 83 break; 84 85 len = strlen(origname) - 1; 86 if (len > 0 && origname[len] == '/') 87 /* remove trailing slash */ 88 origname[len] = '\0'; 89 if ((fsinfo = getfsfile(origname)) == NULL) { |
90 printf("Can't resolve %s to character special device", | 90 printf( 91 "Can't resolve %s to character special device.\n", |
91 origname); 92 return (0); 93 } 94 newname = fsinfo->fs_spec; 95 retried++; 96 goto retry; 97 } 98 /* --- 12 unchanged lines hidden --- | 92 origname); 93 return (0); 94 } 95 newname = fsinfo->fs_spec; 96 retried++; 97 goto retry; 98 } 99 /* --- 12 unchanged lines hidden --- |