#include <afsconfig.h>
#include <afs/param.h>
+#include <roken.h>
-/* missing type from C language */
-
-#include <errno.h>
-#ifdef AFS_AIX32_ENV
-#include <signal.h>
-#undef _NONSTD_TYPES
-#endif
-#include <stdio.h>
-#include <unistd.h>
#include <afs/afs_args.h>
-#include <sys/param.h>
-#ifdef AFS_SUN5_ENV
-#include <fcntl.h>
-#endif
-#include <sys/file.h>
-#include <sys/stat.h>
-#include <dirent.h>
-#include <sys/time.h>
#define VIRTUE
#define VICE
-#include <sys/ioctl.h>
#include <afs/vice.h>
#undef VIRTUE
#undef VICE
-#include <sys/ioctl.h>
-#include <netdb.h>
-#ifdef HAVE_NETINET_IN_H
-#include <netinet/in.h>
-#endif
-
-#include <string.h>
-#include <stdlib.h>
-
#include <afs/venus.h>
#include <afs/sys_prototypes.h>
#include <afs/afsutil.h>
/* ************************************************************* */
-#define MAXACL 400
+#define MAXACL AFS_PIOCTL_MAXSIZE
short verbose = 0;
short renameTargets = 0;
/* Close the files */
code = close(f1);
+ if (code < 0) {
+ perror("close ");
+ rcode = 1;
+ }
code = close(f2);
if (code < 0) {
perror("close ");
fflush(stdout);
}
- n = readlink(file1, linkvalue, sizeof(linkvalue));
+ n = readlink(file1, linkvalue, sizeof(linkvalue)-1);
if (n == -1) {
fprintf(stderr, "Could not read symbolic link %s\n", file1);
perror("read link ");
*/
}
}
- return 4;
}