Mercurial > hg > octave-lojdl > gnulib-hg
comparison lib/rename.c @ 12102:3ba227551e1d
maint: cleanup whitespace in recent commits
* lib/rename.c (rpl_rename): Remove tabs.
* tests/test-link.h (test_link): Likewise.
Reported by Jim Meyering.
Signed-off-by: Eric Blake <ebb9@byu.net>
author | Eric Blake <ebb9@byu.net> |
---|---|
date | Fri, 02 Oct 2009 11:34:53 -0600 |
parents | 3d66373d8171 |
children | 832357ca223a |
comparison
equal
deleted
inserted
replaced
12101:6e6a73b73bcd | 12102:3ba227551e1d |
---|---|
98 dst_exists = false; | 98 dst_exists = false; |
99 } | 99 } |
100 else | 100 else |
101 { | 101 { |
102 if (S_ISDIR (dst_st.st_mode) != S_ISDIR (src_st.st_mode)) | 102 if (S_ISDIR (dst_st.st_mode) != S_ISDIR (src_st.st_mode)) |
103 { | 103 { |
104 errno = S_ISDIR (dst_st.st_mode) ? EISDIR : ENOTDIR; | 104 errno = S_ISDIR (dst_st.st_mode) ? EISDIR : ENOTDIR; |
105 return -1; | 105 return -1; |
106 } | 106 } |
107 dst_exists = true; | 107 dst_exists = true; |
108 } | 108 } |
109 | 109 |
110 /* There are no symlinks, so if a file existed with a trailing | 110 /* There are no symlinks, so if a file existed with a trailing |
111 slash, it must be a directory, and we don't have to worry about | 111 slash, it must be a directory, and we don't have to worry about |
340 dst_exists = false; | 340 dst_exists = false; |
341 } | 341 } |
342 else | 342 else |
343 { | 343 { |
344 if (S_ISDIR (dst_st.st_mode) != S_ISDIR (src_st.st_mode)) | 344 if (S_ISDIR (dst_st.st_mode) != S_ISDIR (src_st.st_mode)) |
345 { | 345 { |
346 errno = S_ISDIR (dst_st.st_mode) ? EISDIR : ENOTDIR; | 346 errno = S_ISDIR (dst_st.st_mode) ? EISDIR : ENOTDIR; |
347 return -1; | 347 return -1; |
348 } | 348 } |
349 # if RENAME_HARD_LINK_BUG | 349 # if RENAME_HARD_LINK_BUG |
350 if (SAME_INODE (src_st, dst_st)) | 350 if (SAME_INODE (src_st, dst_st)) |
351 return 0; | 351 return 0; |
352 # endif /* RENAME_HARD_LINK_BUG */ | 352 # endif /* RENAME_HARD_LINK_BUG */ |
353 dst_exists = true; | 353 dst_exists = true; |
354 } | 354 } |
355 | 355 |
356 # if (RENAME_TRAILING_SLASH_SOURCE_BUG || RENAME_DEST_EXISTS_BUG \ | 356 # if (RENAME_TRAILING_SLASH_SOURCE_BUG || RENAME_DEST_EXISTS_BUG \ |