Fossil SCM
Fix comments.
Commit
4a32e8ade7d5645cd01692b99f06f8c98db707aa
Parent
c57830bec263996…
1 file changed
+5
-5
+5
-5
| --- src/file.c | ||
| +++ src/file.c | ||
| @@ -95,11 +95,11 @@ | ||
| 95 | 95 | return getStat(zFilename) ? -1 : fileStat.st_mtime; |
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | /* |
| 99 | 99 | ** Return TRUE if the named file is an ordinary file or symlink |
| 100 | -** (if symlinks are allowed). | |
| 100 | +** and symlinks are allowed. | |
| 101 | 101 | ** Return false for directories, devices, fifos, etc. |
| 102 | 102 | */ |
| 103 | 103 | int file_isfile_or_link(const char *zFilename){ |
| 104 | 104 | #if !defined(_WIN32) |
| 105 | 105 | if ( g.allowSymlinks ){ |
| @@ -112,20 +112,20 @@ | ||
| 112 | 112 | #endif |
| 113 | 113 | } |
| 114 | 114 | |
| 115 | 115 | /* |
| 116 | 116 | ** Return TRUE if the named file is an ordinary file. Return false |
| 117 | -** for directories, devices, fifos, etc. | |
| 118 | -** | |
| 117 | +** for directories, devices, fifos, symlinks, etc. | |
| 119 | 118 | */ |
| 120 | 119 | int file_isfile(const char *zFilename){ |
| 121 | 120 | return getStat(zFilename) ? 0 : S_ISREG(fileStat.st_mode); |
| 122 | 121 | } |
| 123 | 122 | |
| 124 | 123 | /* |
| 125 | -** Return TRUE if the named file is a symlink. Return false | |
| 126 | -** for all other cases. | |
| 124 | +** Return TRUE if the named file is a symlink and symlinks are allowed. | |
| 125 | +** Return false for all other cases. | |
| 126 | +** | |
| 127 | 127 | ** On Windows, always return False. |
| 128 | 128 | */ |
| 129 | 129 | int file_islink(const char *zFilename){ |
| 130 | 130 | #if !defined(_WIN32) |
| 131 | 131 | if( g.allowSymlinks ){ |
| 132 | 132 |
| --- src/file.c | |
| +++ src/file.c | |
| @@ -95,11 +95,11 @@ | |
| 95 | return getStat(zFilename) ? -1 : fileStat.st_mtime; |
| 96 | } |
| 97 | |
| 98 | /* |
| 99 | ** Return TRUE if the named file is an ordinary file or symlink |
| 100 | ** (if symlinks are allowed). |
| 101 | ** Return false for directories, devices, fifos, etc. |
| 102 | */ |
| 103 | int file_isfile_or_link(const char *zFilename){ |
| 104 | #if !defined(_WIN32) |
| 105 | if ( g.allowSymlinks ){ |
| @@ -112,20 +112,20 @@ | |
| 112 | #endif |
| 113 | } |
| 114 | |
| 115 | /* |
| 116 | ** Return TRUE if the named file is an ordinary file. Return false |
| 117 | ** for directories, devices, fifos, etc. |
| 118 | ** |
| 119 | */ |
| 120 | int file_isfile(const char *zFilename){ |
| 121 | return getStat(zFilename) ? 0 : S_ISREG(fileStat.st_mode); |
| 122 | } |
| 123 | |
| 124 | /* |
| 125 | ** Return TRUE if the named file is a symlink. Return false |
| 126 | ** for all other cases. |
| 127 | ** On Windows, always return False. |
| 128 | */ |
| 129 | int file_islink(const char *zFilename){ |
| 130 | #if !defined(_WIN32) |
| 131 | if( g.allowSymlinks ){ |
| 132 |
| --- src/file.c | |
| +++ src/file.c | |
| @@ -95,11 +95,11 @@ | |
| 95 | return getStat(zFilename) ? -1 : fileStat.st_mtime; |
| 96 | } |
| 97 | |
| 98 | /* |
| 99 | ** Return TRUE if the named file is an ordinary file or symlink |
| 100 | ** and symlinks are allowed. |
| 101 | ** Return false for directories, devices, fifos, etc. |
| 102 | */ |
| 103 | int file_isfile_or_link(const char *zFilename){ |
| 104 | #if !defined(_WIN32) |
| 105 | if ( g.allowSymlinks ){ |
| @@ -112,20 +112,20 @@ | |
| 112 | #endif |
| 113 | } |
| 114 | |
| 115 | /* |
| 116 | ** Return TRUE if the named file is an ordinary file. Return false |
| 117 | ** for directories, devices, fifos, symlinks, etc. |
| 118 | */ |
| 119 | int file_isfile(const char *zFilename){ |
| 120 | return getStat(zFilename) ? 0 : S_ISREG(fileStat.st_mode); |
| 121 | } |
| 122 | |
| 123 | /* |
| 124 | ** Return TRUE if the named file is a symlink and symlinks are allowed. |
| 125 | ** Return false for all other cases. |
| 126 | ** |
| 127 | ** On Windows, always return False. |
| 128 | */ |
| 129 | int file_islink(const char *zFilename){ |
| 130 | #if !defined(_WIN32) |
| 131 | if( g.allowSymlinks ){ |
| 132 |