Commit Graph

473 Commits

Author SHA1 Message Date
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
97e098f82b Implemented -t 2006-02-10 14:26:39 +00:00
2536132751 Return value error check for times() requires an explicit cast 2006-01-27 03:38:48 +00:00
e624966310 Fixed long output of symbolic links 2005-12-11 01:58:38 +00:00
8d114fc361 Added uninstallation rules 2005-10-25 15:58:43 +00:00
4a486b19bc Fixed a bug with -p and an absolute path 2005-10-25 12:18:09 +00:00
94d325a44b Added installation rules 2005-10-25 02:30:56 +00:00
04d8655e01 New configure version 2005-10-24 00:04:32 +00:00
5823aaf0b6 Added dist files 2005-10-23 23:56:40 +00:00
4bbdeb2227 Now displaying symbolic links correctly 2005-09-20 21:00:58 +00:00
f8c31a22af Code cleanup 2005-09-20 20:41:03 +00:00
c64e3f99ac Factorizing mode expression code 2005-08-27 21:11:44 +00:00
c5a36e759a Factorizing mode expression code 2005-08-27 21:05:13 +00:00
8f2b158dc9 Initial revision 2005-08-27 21:00:14 +00:00
6616bc4b1d Fixed "ls -ld" 2005-08-07 02:34:32 +00:00
6d8f6f4b92 Fixed rm interaction by default 2005-07-18 12:21:55 +00:00
5e446146e4 No need to force interaction on interactive terminals 2005-07-18 12:21:38 +00:00
2d14924d45 Added a bug for rm 2005-07-17 14:17:31 +00:00
1588519eff Unified command-line parsing 2005-07-14 17:13:14 +00:00
fa1231e0ff Code cleanup 2005-07-14 17:12:09 +00:00
6c20dff61e Fixed usage 2005-07-14 17:11:58 +00:00
6cf4acdbe9 Fixed error message 2005-07-14 17:11:40 +00:00
6f100c0a7a Fixed "-m" command line option parsing (only numerical is supported) 2005-07-14 17:11:24 +00:00
b25ac91bc8 Command-line option "-f" is not implemented 2005-07-14 17:07:43 +00:00
3b0d2849f9 Fixed error message 2005-07-14 17:05:49 +00:00
eb41fcfaad Fixed -m command line option (only numerical form is supported) 2005-07-14 16:58:16 +00:00
027c167084 *** empty log message *** 2005-06-16 01:54:32 +00:00
b801bb6047 Bugs submitted 2005-06-15 03:45:22 +00:00
1530c909f4 Upgrading to today's standards (is just barely started anyway) 2005-06-14 04:36:09 +00:00
f0e05efa18 Code cleanup 2005-06-14 04:26:22 +00:00
a2c308cb4e Code cleanup 2005-06-14 04:25:31 +00:00
6fc807ef60 According to make usage it seems like with -f rm should return success code if a file doesn't exist 2005-06-14 00:24:15 +00:00
06b36386f8 Implemented recursive unlinking 2005-06-10 22:36:33 +00:00
80cd9078de Fixed confirmation 2005-06-08 15:13:44 +00:00
45dd4ecf49 Asking for confirmation when appropriate 2005-06-08 15:09:46 +00:00
a66b7d7108 Going on 2005-06-08 13:39:37 +00:00
51aadc0f50 Added target rm 2005-06-04 07:20:22 +00:00
f7a1c078ce Initial release 2005-06-04 07:14:47 +00:00
78a24bd5d4 Added 2 bugs for ls 2005-05-11 22:43:54 +00:00
1d9d36ead8 Fixed file creation 2005-05-11 22:18:59 +00:00
976763c4c3 du doesn't implement -x option 2005-05-10 03:48:49 +00:00
0c23aa6df4 Not too good long listing size alignment fix 2005-05-08 15:07:41 +00:00
2875776679 Removed commented out SList code 2005-05-07 18:31:18 +00:00
8793b87d01 Code cleanup and minor directories listings presentation fix 2005-05-07 18:29:30 +00:00
14e906c793 Code cleanup 2005-05-07 18:04:03 +00:00
ad1fe0c428 Fixed a segmentation fault in listing mode 2005-05-07 17:59:21 +00:00
6c57d50825 Understood what -C is for 2005-05-07 16:55:03 +00:00
1add2fed6b Understood what -C is for 2005-05-07 16:54:33 +00:00
3e408abb56 Added -H and -L 2005-05-07 16:51:46 +00:00
dc16adf0c8 Fixed -F with absolute path and short listing 2005-05-07 16:07:54 +00:00
f7ae0e5273 Fixed size reporting (verify if should use st_blksize too) and fixed -s option 2005-05-07 05:04:39 +00:00
54a0bb47f0 Hopefully gone a bit further 2005-04-25 22:58:52 +00:00
dc9d81988a Added a FIXME where obviously appropriate 2005-04-25 22:58:32 +00:00
0d8d2ef206 Fixed a compilation warning 2005-04-09 22:47:46 +00:00
c1a1d026c4 Hopefully fixed 2005-04-09 22:40:13 +00:00
06bf7ae78c Code cleanup 2005-04-09 21:05:45 +00:00
229e91461f Checks whether mode is valid 2005-04-08 17:26:22 +00:00
a22e169fb3 Removed useless external declarations 2005-04-08 17:12:27 +00:00
91874277f8 Removed useless external declarations 2005-04-08 17:06:23 +00:00
77bf6bed00 Should be fixed for real now 2005-04-08 17:05:34 +00:00
cb1a91577c Should no longer fail if a directory already exists when using -p 2005-04-05 22:11:04 +00:00
e3ed4ef6a2 Code cleanup 2005-03-07 10:20:01 +00:00
ecaa965761 Renamed prefs.time to prefs.rtime for clarity 2005-03-07 10:15:22 +00:00
2ca0841e41 New design, fixed -r and -a/-m, usage error 2005-03-07 10:11:33 +00:00
4faa8d8b62 Fixed a warning 2005-03-07 09:48:31 +00:00
0792ad5f32 Should be almost functional (not tested) 2005-03-07 09:47:01 +00:00
135c78c9ee Added target locale 2005-02-14 22:01:18 +00:00
d429612095 Initial release 2005-02-14 22:01:01 +00:00
6f28593b59 Added target file 2005-02-14 21:24:19 +00:00
3c1b900136 Initial release 2005-02-14 21:20:34 +00:00
91bf2347d3 Unified error output 2005-02-14 12:58:44 +00:00
37bb1bc062 Added target renice 2005-02-10 15:14:19 +00:00
ed6544512a Added target renice 2005-02-10 15:14:18 +00:00
d3339c9551 Added target nice 2005-02-10 15:12:32 +00:00
4cb0d2babb Initial release 2005-02-10 15:10:40 +00:00
509132fce6 Looks fully functional 2005-02-03 01:25:58 +00:00
f7e8789172 Added target cksum 2005-02-02 00:16:18 +00:00
7be2693218 Initial release 2005-02-01 10:25:43 +00:00
291e52953a Checking validity of mode as a number (not implemented as a string though) 2005-02-01 10:11:37 +00:00
b15cf7275d Added target touch 2005-02-01 00:03:49 +00:00
3466fd5f24 Initial release 2005-02-01 00:03:33 +00:00
6f523033ea Code cleanup 2005-01-31 17:23:20 +00:00
7ce53ab39f Removed useless argument to _time() 2005-01-31 17:19:02 +00:00
653838a049 Removed useless argument to _is_directory() 2005-01-31 17:16:17 +00:00
1de728a13b Fixed 2 compilation warnings 2005-01-31 17:14:20 +00:00
db3ecd0b9b Overall suggestion and ls becomes usable 2004-11-17 19:17:28 +00:00
82b1f2ecae Implemented -F option 2004-11-17 19:15:08 +00:00
870ed81cc6 Code cleanup 2004-11-17 19:14:44 +00:00
ee455a13f7 Added directory recursion 2004-11-17 19:14:19 +00:00
874660f931 Added a FIXME tag where have to fully implement mode argument handling 2004-10-21 21:37:20 +00:00
bd17453c1d Added target chmod 2004-10-02 10:39:15 +00:00
4c0db9fb2e Initial release (very partial functionnality) 2004-10-02 10:38:55 +00:00
4f7dc3b92e Going on 2004-10-01 14:59:37 +00:00
65c7504898 Added target uniq 2004-09-27 15:58:00 +00:00
65f04986ff Almost complete rewrite 2004-09-17 14:19:22 +00:00
7d05bb4402 Stating not implemented options 2004-09-17 14:15:39 +00:00
bea30ae5a9 Restoring buffer increments value to a decent one 2004-09-17 14:12:12 +00:00
9687b58abd Forgot to increment len 2004-09-17 14:10:02 +00:00
17072d075c Hopefully fixed uniq 2004-09-17 14:06:28 +00:00
dc967f3348 Initial release 2004-09-17 14:06:11 +00:00
abc534cdb3 uniq bugs 2004-09-17 12:43:36 +00:00
5a59bd0f1d Initial release (known bugs) 2004-09-17 12:42:15 +00:00
fcb62dced8 Initial release 2004-09-13 12:18:36 +00:00
b9a6cc461e Removed useless call to _chgrp_do(file) just before _chgrp_do_recursive(file) 2004-09-13 12:17:12 +00:00
68ace1b9d5 Close opened directory on further allocation error 2004-09-13 12:13:30 +00:00
b8dc227a6d Fixed a bug where in recursive mode non-directories given in arguments were not affected 2004-09-13 12:07:33 +00:00
b4713f7d3b Removed useless call to stat() 2004-09-13 11:49:05 +00:00
5e7da9c584 Detailed 2 options in usage() 2004-09-13 11:21:31 +00:00
db8d624163 Code cleanup 2004-09-13 11:19:51 +00:00
001c3396d0 Code cleanup 2004-09-13 11:06:16 +00:00
88e68d8161 Added target chown 2004-09-13 09:42:21 +00:00
e6e9de1ac4 Initial release; not functional yet 2004-09-13 09:41:51 +00:00
12369f6e2f Code cleanup and attempting to use sysconf() for better POSIX compliance 2004-09-13 09:02:01 +00:00
9b169fa7f4 Makefiles generated by configure 2004-08-25 11:42:11 +00:00
ab0f87ffc4 Error messages cleanup 2004-08-19 16:55:05 +00:00
b723461479 *** empty log message *** 2004-08-19 16:54:28 +00:00
60e52f533d Better error output 2004-08-19 16:54:12 +00:00
bd460bfe1b Better arguments options checking 2004-08-19 16:53:26 +00:00
5998df510d Initial release 2004-08-19 16:52:21 +00:00
e558cd0f2f Added targets link and du 2004-08-19 16:51:29 +00:00
3a68bc8458 Avoid duplicate '/' 2004-08-07 16:30:49 +00:00
ce2ecbe2e5 Enabled recursive mode 2004-08-07 16:24:26 +00:00
999cd91b7e _prefs_parse() doesn't need _usage() 2004-08-07 15:39:28 +00:00
a037ebb6e1 Fixed symlinks test 2004-08-07 15:33:46 +00:00
27a1a102a8 Added target chgrp 2004-07-30 17:18:29 +00:00
97b50768f7 Initial release; still problems while going recursively 2004-07-30 14:58:47 +00:00
bdb1c29b91 Invalid prototype definition for static function _read_rwx_g() 2004-07-25 02:45:14 +00:00
86c7e31c94 Added target test 2004-07-21 23:41:01 +00:00
f08a6678da Changed a while loop to a for 2004-07-21 23:33:46 +00:00
f00928ec13 Added -s 2004-07-21 16:03:49 +00:00
f424be094f Code cleanup 2004-07-21 15:56:08 +00:00
bfc49c794a Added -rwx 2004-07-21 15:50:10 +00:00
7d61fced9f Added target test 2004-07-21 13:06:40 +00:00
3f445c9cf9 Added options -ghL, code cleanup 2004-07-21 13:05:56 +00:00
fb120ca69a Initial release 2004-07-21 12:15:52 +00:00
e059ec80c7 Complete rewrite 2004-07-18 16:28:18 +00:00
1692350a0b Added target echo 2004-07-15 01:34:36 +00:00
933174a69c Initial release 2004-07-15 01:29:29 +00:00
660d6f0709 Using fwrite() instead of printf() 2004-07-07 21:38:49 +00:00
e44f258bff Terminating a buffer string (can't remember when I did that, no time to check but shouldn't hurt) 2004-06-04 20:05:34 +00:00
fb28e7fe07 Added target cp and string; preliminary installation procedure 2004-05-24 00:13:14 +00:00
ab1fde7ecb Added targets cp and strings 2004-05-24 00:07:35 +00:00
65a923180d Initial release 2004-05-24 00:05:33 +00:00
5d7b0e0989 Added target pwd 2004-04-29 21:58:55 +00:00
8874194d52 Initial release 2004-04-29 21:58:33 +00:00
b192a20f17 Include stdlib.h for strtol() 2004-04-27 16:37:59 +00:00
74b3fb8bf3 Initial release 2004-04-25 03:04:08 +00:00
12e560bb6c Added target time 2004-04-25 03:03:48 +00:00
08f0865806 Added target sleep 2004-04-24 00:27:21 +00:00
839f992073 Initial release 2004-04-24 00:26:46 +00:00
c4cf196a33 wc may have proper command line arguments handling 2004-04-11 03:18:32 +00:00
739f7eb527 Renamed static usage() to _usage() 2004-04-11 03:17:33 +00:00
b03d07b6df Added target wc 2004-04-11 03:16:35 +00:00
f6f5ad5757 Initial release 2004-04-11 02:40:06 +00:00
8c533bfbd2 Added input checking for -n command line argument 2004-04-11 01:12:01 +00:00
e515abb182 Added target head 2004-04-11 01:08:45 +00:00
b40490ee1c Initial release 2004-04-11 01:08:35 +00:00
f201bfdb1f Removed useless prototypes for libc calls, compiles with -O2 then 2004-04-11 01:08:06 +00:00
b93a5f34d5 Renamed static usage() to _usage() 2004-04-10 17:33:30 +00:00
33fc08ec6d Added ln.o 2004-04-10 17:33:14 +00:00
ae5ec29c87 Typo while parsing -v command line argument 2004-04-07 12:33:03 +00:00
e19bb3b917 Command line arguments fetching 2004-04-03 16:19:21 +00:00
83719ff4c5 Handling more options (yet to implement too...) 2004-04-03 14:29:08 +00:00
a8bffb77cd Added -R option (yet to implemented) 2004-04-03 14:21:45 +00:00
1ed1dea61a Removed getopt() prototype 2004-04-02 00:10:57 +00:00
84d102e30d Added state for mkdir and rmdir 2004-03-28 16:11:12 +00:00
fecfc70c14 Added target mkdir 2004-03-28 15:01:56 +00:00
112abd0325 Initial release 2004-03-28 15:01:11 +00:00
43c33d4fbb Better error messages 2004-03-28 15:00:33 +00:00
9c345cf69f Changed recursion algorithm (still bugs)
Better error messages
2004-03-28 14:59:35 +00:00
68b35c36b8 Added target rmdir 2004-03-26 18:00:13 +00:00
00998f1441 Initial release 2004-03-26 17:58:41 +00:00
9dbd2008ae Added state for kill and ls 2004-03-26 14:32:46 +00:00
f965350dd7 Display filename on perror() 2004-03-26 14:25:14 +00:00
b888826e14 Renamed static usage() to _usage() 2004-03-26 14:22:46 +00:00
8711f90fe5 Re-indented 2004-03-26 14:21:22 +00:00
668bd955a5 Fixed groups= display for other users 2004-03-26 14:19:44 +00:00
3b7c4dd96e Better code presentation...? 2004-03-26 14:09:29 +00:00
5223097e82 Forgot a newline 2004-03-26 14:02:38 +00:00
27fc01fa09 Added target ls 2004-03-26 14:00:37 +00:00
5dcf3cc39a Initial release 2004-03-26 13:59:54 +00:00
2e12ea194a Fixed clean target 2004-03-26 04:35:03 +00:00
b1c8074414 *** empty log message *** 2004-03-26 04:21:20 +00:00
43c06be92d Added target uname 2004-03-26 04:19:04 +00:00
bfe72f9cb0 Initial release 2004-03-26 04:17:18 +00:00
0bb72e2a78 Added target cat 2004-03-26 04:12:31 +00:00
c4c0e11365 Added target cat 2004-03-26 03:44:51 +00:00
dd1d98a391 Initial release 2004-03-26 03:44:30 +00:00
3ee9780ec9 Added target cmp 2004-03-26 02:32:24 +00:00
efe8321c73 Initial release 2004-03-26 02:32:08 +00:00
98d1f1fe75 Added target kill 2004-03-26 01:30:28 +00:00
b256746c39 Initial release 2004-03-26 01:29:35 +00:00
967f18d5b3 Call perror() on ttyname() errors 2004-03-26 00:36:01 +00:00
69820cb6c7 Fixed a return error code 2004-03-26 00:34:01 +00:00
3159898d0e No, better a warning than bloat code 2004-03-26 00:29:40 +00:00
80a3ee0dae Work-around harmless warning 2004-03-26 00:28:54 +00:00
e796cb978a Added target link 2004-03-26 00:26:21 +00:00
91fc047fd2 Initial release 2004-03-26 00:24:32 +00:00
2400a0af2d Re-indented 2004-03-26 00:20:21 +00:00
feaf01d0d0 Corrected _ln_multiple destination filename allocation 2004-03-26 00:16:43 +00:00
2813a833b4 Should be functional 2004-03-26 00:10:43 +00:00