Commit Graph

473 Commits

Author SHA1 Message Date
2df6ec2667 Fixed copy or regular files across devices 2007-08-03 01:14:22 +00:00
03e144c8ee Code cleanup
Fixed usage screen
2007-08-03 01:09:39 +00:00
9dc7ee76d2 Fixed usage screen 2007-08-03 01:09:14 +00:00
d88e2c65a2 Fixed compilation 2007-07-31 00:50:17 +00:00
e31c6fdafb Code cleanup 2007-07-31 00:49:41 +00:00
cae9308811 Code cleanup 2007-07-29 22:57:10 +00:00
d4e792fa88 ls can display unknown uid and gid 2007-07-29 17:11:02 +00:00
42ccfce4f6 Code cleanup 2007-07-29 17:10:32 +00:00
1a135949ed Fix compilation with DeforaOS libc 2007-07-29 17:01:09 +00:00
523554baf8 Hopefully fixed handling of -H, -L and -P options 2007-07-29 16:46:15 +00:00
e9f12002c1 Simpler and more portable code (cannot avoid TOCTOU anyway) 2007-07-29 16:18:02 +00:00
1d73c291f1 Factorized confirmation code 2007-07-29 16:12:59 +00:00
2ba9d0e69a Added a comment 2007-07-29 16:06:39 +00:00
e223e0d50e Do not confirm when source or destination is absent 2007-07-29 15:59:35 +00:00
494c4a1a25 Re-organized the code 2007-07-29 15:41:54 +00:00
1c0a70ec20 Code cleanup 2007-07-29 14:01:49 +00:00
d9d0ba0c00 Stricter use of readlink() 2007-07-29 11:46:03 +00:00
f740fb5336 Code cleanup 2007-07-29 11:43:56 +00:00
17c0fae701 Code cleanup 2007-07-29 11:42:54 +00:00
baa2cd5f37 Replaced lchmod() and lutimes() by utimes() for portability 2007-07-29 02:15:46 +00:00
ac0b1f8db7 Restoring access and modification times 2007-07-29 01:38:35 +00:00
2651c6e0d5 Handling device nodes 2007-07-29 01:34:40 +00:00
f4b626c678 Handling named pipes 2007-07-29 01:26:36 +00:00
c56e1ff381 Restoring original ownership and permissions 2007-07-29 01:22:23 +00:00
7b82474d4f Implemented confirmation and fixed moving directories across devices 2007-07-29 01:14:00 +00:00
67794dcc42 Supporting cross-device file renaming 2007-07-08 11:14:34 +00:00
e4831defec Code cleanup 2007-06-29 15:19:20 +00:00
6095a382c9 Cleaned error handling 2007-06-26 18:01:29 +00:00
9d1a58881b Cleaned error code 2007-06-26 18:00:29 +00:00
e07dfc0403 Works in one case (bytes, seekable) 2007-06-26 08:47:06 +00:00
39924d1c66 Started implementation 2007-06-26 08:17:30 +00:00
45a3956e23 Code cleanup fixes warnings about signedness issues 2007-06-25 09:33:44 +00:00
238e7801e7 Parsing command line arguments 2007-06-21 12:41:44 +00:00
ee6c7787cd Failing to delete a file in recursively was bailing out prematurely 2007-06-20 03:03:57 +00:00
09bd4adb64 Fixed error code when attempting to delete directories not recursively 2007-06-18 03:27:17 +00:00
58d32754ca The first two directory entries may not be "." and ".." 2007-06-18 03:21:45 +00:00
bd748050e2 Code cleanup 2007-06-18 03:19:08 +00:00
a65a1a5d5c Using errno to print the error when unable to delete a directory 2007-06-18 02:28:50 +00:00
00af06fd5e Properly licensed as part of the DeforaOS Project 2007-06-13 19:03:50 +00:00
e7b557a157 Code cleanup 2007-06-02 17:46:26 +00:00
393ef41b69 Usage and error strings were wrong 2007-06-02 15:53:19 +00:00
4654b72291 Code cleanup 2007-06-01 16:34:47 +00:00
02d40b2210 Code cleanup 2007-05-22 02:33:52 +00:00
a8f6d8366f More code cleanup 2007-05-14 18:25:31 +00:00
c8655f7c76 I believe id.c is a bit more readable now 2007-05-14 18:21:41 +00:00
d4496e5f84 Massive cleanup 2007-05-14 18:20:50 +00:00
706f34f49b Revert 1.8 2007-05-09 22:37:22 +00:00
22c02149f9 localtime() does not return NULL 2007-05-09 22:36:01 +00:00
c3f10f08f2 Code cleanup 2007-05-09 22:32:02 +00:00
52c3dfc1ea Code cleanup 2007-05-09 22:24:48 +00:00
991a400776 Implemented -F 2007-05-09 21:43:58 +00:00
04059075af Implemented -h and -n 2007-05-09 21:40:04 +00:00
64c96d0722 Fixed header formatting 2007-05-09 21:24:23 +00:00
c4c26a9dab Fixed header date and text with standard input 2007-05-09 21:22:25 +00:00
83088b30bb Implemented -o, Displaying time, Code cleanup 2007-05-09 21:13:18 +00:00
f3ddf49303 Implemented -d 2007-05-09 20:26:30 +00:00
97cd6d37d8 Added page number 2007-05-09 20:17:10 +00:00
ee2517359b Fix -t and -l with less than 11 lines 2007-05-09 20:15:52 +00:00
bdd46b87e2 Supports arbitrary large width 2007-05-09 20:09:08 +00:00
1cf9a01bc0 Added pr and printf 2007-05-08 16:40:00 +00:00
732c193c91 Initial release 2007-05-08 16:37:48 +00:00
288fbbe6bb Code cleanup 2007-05-08 16:37:23 +00:00
5fb3c7d88a Let df compile again on Linux 2007-03-28 05:39:38 +00:00
bc5a1b6be3 Code cleanup 2007-03-28 05:25:55 +00:00
c596ba0562 Code cleanup 2007-03-28 05:14:02 +00:00
b5132b4855 Supports systems without the d_type field in struct dirent 2007-03-28 05:03:27 +00:00
b00b5b9602 Implemented -i 2007-03-28 04:51:24 +00:00
d91bdcf3fd Displaying numerical uid and gid when unknown 2007-03-25 15:42:12 +00:00
1398021ba8 Code cleanup 2007-03-25 15:35:58 +00:00
092b5b9b0e Fixed interactive mode spurious error messages on EOF 2007-03-25 14:31:04 +00:00
27146b75d9 More adequate error messages 2007-03-17 18:53:25 +00:00
6562d4c302 Added copyright string 2007-03-17 18:18:58 +00:00
ebfb69001f Provided mv basic functionality 2007-03-17 18:06:47 +00:00
18b631ed12 Fixed error code when a memory allocation error occured 2007-03-17 18:04:16 +00:00
e36447da8f Code cleanup 2007-03-17 18:02:03 +00:00
fd174ae198 Hopefully fixed -P and -H 2007-03-17 17:53:28 +00:00
568f3e7088 Removed bloat code (-P has to be implemented another way) 2007-03-17 17:47:43 +00:00
cb8688366a With more than two file operands the last one must already be a directory 2007-03-17 17:37:37 +00:00
1ad51d9fe6 Added stub for mv 2007-03-17 17:19:50 +00:00
f648dd32b3 Code cleanup 2007-03-17 16:53:01 +00:00
7a1bab59cf Code cleanup 2007-03-17 16:46:36 +00:00
68ec0c73d0 Actually implemented -H and -P 2007-03-17 16:42:19 +00:00
bab1549e4d Implemented recursion 2007-03-17 16:06:23 +00:00
258c24e143 Safer way to print results 2007-03-16 00:12:06 +00:00
32cccc3f68 Code cleanup 2007-03-15 15:36:31 +00:00
bd13f4bb09 Code cleanup 2007-03-15 15:07:30 +00:00
7c3a909593 Code cleanup 2007-03-14 12:38:55 +00:00
4fa89f9104 Apparently fixed filesystems blocks to bytes ratio 2007-03-14 11:43:42 +00:00
35857e29b4 Implemented df on NetBSD 2007-03-14 00:16:25 +00:00
4644182264 Fixed some type size issues 2007-02-07 18:29:49 +00:00
2311c44d1c Do not assume "." and ".." are the first entries 2007-02-07 00:12:22 +00:00
9567b4bfdb Code cleanup 2007-02-07 00:10:48 +00:00
3ee6b2ff1e Code cleanup 2007-01-30 23:22:55 +00:00
5ecf649485 Added copyright strings 2007-01-30 23:22:33 +00:00
44df075eb4 Using fputs() instead of fprintf() where possible 2007-01-26 14:32:05 +00:00
d17ce1d939 Re-generated Makefiles 2007-01-19 01:36:16 +00:00
e6fc3d2532 ls was improved some time ago 2007-01-10 20:44:49 +00:00
2acab8b828 Extra arguments are not allowed 2007-01-10 05:02:01 +00:00
f31f3d439c Stricter error checking 2007-01-10 00:20:12 +00:00
31fd387308 Code cleanup 2007-01-07 22:49:02 +00:00
343a9b680c Code cleanup 2007-01-07 20:10:48 +00:00
0e1851a62b Re-generated Makefile 2006-12-14 17:59:49 +00:00
b5186ccbd7 Code cleanup 2006-11-26 14:02:17 +00:00
27a485dd8a Include Makefile in dist 2006-11-01 21:08:35 +00:00
c6bb475430 Code cleanup 2006-10-27 11:04:08 +00:00
a3c61e5358 A memory leak is left (this tool deserves a reengineering) 2006-10-27 10:45:55 +00:00
653f354b82 Fixed logical errors when closing opened files 2006-10-27 10:37:17 +00:00
f67ab1912a Fixed a memory leak 2006-10-27 10:34:19 +00:00
785e270d52 Code cleanup 2006-10-27 10:27:12 +00:00
2433c6b43f Code cleanup 2006-10-26 22:47:13 +00:00
29fb417934 Code cleanup 2006-10-26 22:40:40 +00:00
787c838913 Code cleanup 2006-10-26 22:32:27 +00:00
014c2d9816 Failed to check an fclose() call return value 2006-10-26 22:26:44 +00:00
7f0623f385 Making error on closedir() non-fatal to try to be useful and avoid memory leak 2006-10-26 22:22:50 +00:00
22f97cbcbb Did not check for errors when closing directory (memory leak also suspected) 2006-10-26 22:08:19 +00:00
434ce4bd68 Adding copyright notices 2006-10-11 07:27:47 +00:00
8f16f2bc58 Added target tail 2006-10-11 07:20:31 +00:00
b78d13a5cb tail is not implemented 2006-10-11 07:19:42 +00:00
aaeb68c8a7 Initial release 2006-10-11 07:18:22 +00:00
6026b609c7 Adding copyright notices 2006-10-11 07:15:41 +00:00
f5f1bbbcbd Code cleanup 2006-10-09 03:50:16 +00:00
e10c3531cf Aligned with other programs for preferences handling 2006-07-16 17:38:26 +00:00
812af56954 Code cleanup 2006-07-16 15:56:02 +00:00
42b44ef077 Portability fix 2006-07-14 11:58:50 +00:00
b3d5888ffc Re-generated Makefile 2006-07-14 11:49:18 +00:00
3b0a46b3fa Added target who 2006-06-02 22:53:59 +00:00
84dda62139 Code cleanup 2006-06-02 15:20:24 +00:00
0c231c1647 Code cleanup 2006-06-02 15:02:26 +00:00
aad1908656 Initial release 2006-06-02 14:50:05 +00:00
490ebff1e0 Added target df 2006-05-31 12:08:08 +00:00
098df7b088 Getting rid of a temporary variable 2006-05-30 21:43:05 +00:00
8a94ae1a86 Format string alignment (probable) fix for some platforms 2006-05-30 21:35:31 +00:00
38695ef726 Started thinking about default behaviour's implementation 2006-05-29 23:39:45 +00:00
2883d8e7b5 -T is unspecified 2006-05-29 23:32:06 +00:00
440a7559fc Implemented -k 2006-05-29 23:20:56 +00:00
800ca47f3e Initial release 2006-05-29 19:31:29 +00:00
264ae02590 Fixed potential issues with format strings 2006-04-29 19:49:51 +00:00
5bc45b6418 Returns 2 on non-usage error 2006-04-13 20:34:41 +00:00
33bc3d04f1 Code cleanup 2006-04-13 20:33:19 +00:00
88f7d838a3 Code cleanup 2006-03-18 23:45:38 +00:00
67a899d29e Added a suggestion 2006-03-18 03:16:12 +00:00
08bbf070c6 Cross-platform long mode 2006-03-17 22:53:36 +00:00
1a02627f89 Compiles on NetBSD 2006-03-17 22:44:33 +00:00
2674d60147 Code cleanup 2006-03-17 21:33:59 +00:00
f83e4d1ac2 Aligned options handling with the other utilities 2006-03-06 21:29:34 +00:00
4e970804bf Code cleanup 2006-03-06 21:28:12 +00:00
3cf2db47bb Supports numerical IDs as fallback 2006-02-27 22:30:24 +00:00
b1fb976f41 Code cleanup 2006-02-27 22:29:56 +00:00
662e748da8 Code cleanup 2006-02-15 18:45:07 +00:00
df679a66b6 Forgot to apply -t to directory listings 2006-02-11 01:31:33 +00:00