Fossil SCM

Fix comments.

dmitry 2011-08-23 13:54 symlinks
Commit 4a32e8ade7d5645cd01692b99f06f8c98db707aa
1 file changed +5 -5
+5 -5
--- src/file.c
+++ src/file.c
@@ -95,11 +95,11 @@
9595
return getStat(zFilename) ? -1 : fileStat.st_mtime;
9696
}
9797
9898
/*
9999
** Return TRUE if the named file is an ordinary file or symlink
100
-** (if symlinks are allowed).
100
+** and symlinks are allowed.
101101
** Return false for directories, devices, fifos, etc.
102102
*/
103103
int file_isfile_or_link(const char *zFilename){
104104
#if !defined(_WIN32)
105105
if ( g.allowSymlinks ){
@@ -112,20 +112,20 @@
112112
#endif
113113
}
114114
115115
/*
116116
** 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.
119118
*/
120119
int file_isfile(const char *zFilename){
121120
return getStat(zFilename) ? 0 : S_ISREG(fileStat.st_mode);
122121
}
123122
124123
/*
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
+**
127127
** On Windows, always return False.
128128
*/
129129
int file_islink(const char *zFilename){
130130
#if !defined(_WIN32)
131131
if( g.allowSymlinks ){
132132
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button