Differences From Artifact [8bdf9aab45]:
- File src/add.c — part of check-in [975600dd59] at 2015-05-12 10:42:20 on branch trunk — Make addremove command to fail if unprocessed arguments (other than options) are specified. To avoid mis-use where a user could think he can specify a list of directory like with many other commands. (user: mgagnon size: 29788)
To Artifact [f3da742e34]:
- File src/add.c — part of check-in [46675ed219] at 2015-05-15 02:25:28 on branch trunk — Remove access check from [fossil add] to make it match [fossil addremove] which waits until [fossil commit] to check for readability. This makes it possible to use [fossil add] to add symlinks to nonexistent/unreadable files and (not like this is useful) to add zero-length files for which the user does not have read permission. [fossil addremove] has always had these capabilities, but it has the drawback of adding and removing everything it can, not allowing the user to limit its scope. (user: andygoth size: 29701) [more...]
| ︙ | |||
315 316 317 318 319 320 321 | 315 316 317 318 319 320 321 322 323 324 325 326 327 328 | - - |
file_canonical_name(g.argv[i], &fullName, 0);
zName = blob_str(&fullName);
isDir = file_wd_isdir(zName);
if( isDir==1 ){
vfile_scan(&fullName, nRoot-1, scanFlags, pClean, pIgnore);
}else if( isDir==0 ){
fossil_warning("not found: %s", zName);
|
| ︙ |