- Timestamp:
- Sep 16, 2020, 1:47:57 AM (5 years ago)
- Location:
- trunk/src/kash
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/Makefile.kmk
r3466 r3469 134 134 strsignal.c \ 135 135 strlcpy.c \ 136 ../lib/nt/ntstat.c \ 137 ../lib/nt/nthlpcore.c \ 138 ../lib/nt/nthlpfs.c \ 136 139 ../lib/nt/nt_child_inject_standard_handles.c 137 140 ifdef KASH_WIN_FORKED_MODE -
trunk/src/kash/shfile.c
r3466 r3469 2158 2158 { 2159 2159 # if K_OS == K_OS_WINDOWS 2160 # if 1 2161 rc = birdStatFollowLink(abspath, pst); 2162 # else 2160 2163 int dir_slash = shfile_trailing_slash_hack(abspath); 2161 2164 rc = stat(abspath, pst); /** @todo re-implement stat. */ … … 2164 2167 rc = -1; 2165 2168 errno = ENOTDIR; 2166 } 2169 2170 } 2171 # endif 2167 2172 # else 2168 2173 rc = stat(abspath, pst); 2169 2174 # endif 2170 2175 } 2171 TRACE2((NULL, "shfile_stat(,%s,) -> %d [%d]\n", path, rc, errno)); 2176 TRACE2((NULL, "shfile_stat(,%s,) -> %d [%d] st_size=%llu st_mode=%o\n", 2177 path, rc, errno, (unsigned long long)pst->st_size, pst->st_mode)); 2172 2178 return rc; 2173 2179 #else … … 2186 2192 { 2187 2193 # if K_OS == K_OS_WINDOWS 2194 # if 1 2195 rc = birdStatOnLink(abspath, pst); 2196 # else 2188 2197 int dir_slash = shfile_trailing_slash_hack(abspath); 2189 2198 rc = stat(abspath, pst); /** @todo re-implement stat. */ … … 2193 2202 errno = ENOTDIR; 2194 2203 } 2204 # endif 2195 2205 # else 2196 2206 rc = lstat(abspath, pst); … … 2200 2210 rc = stat(path, pst); 2201 2211 #endif 2202 TRACE2((NULL, "shfile_stat(,%s,) -> %d [%d]\n", path, rc, errno)); 2212 TRACE2((NULL, "shfile_lstat(,%s,) -> %d [%d] st_size=%llu st_mode=%o\n", 2213 path, rc, errno, (unsigned long long)pst->st_size, pst->st_mode)); 2203 2214 return rc; 2204 2215 } -
trunk/src/kash/shfile.h
r3466 r3469 95 95 96 96 #endif 97 #if K_OS == K_OS_WINDOWS 98 # include "nt/ntstat.h" 99 #endif 97 100 98 101
Note:
See TracChangeset
for help on using the changeset viewer.