Commit Graph

35 Commits

Author SHA1 Message Date
Love Hornquist Astrand
0879b9831a remove trailing whitespace 2011-05-21 11:57:31 -07:00
Love Hörnquist Åstrand
569ee5438c The max_ arguments are really "%.*s" format input paramaters, to make them into ints.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25253 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-28 01:21:08 +00:00
Love Hörnquist Åstrand
1747257c60 don't set j to 0, since it never read again
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24924 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:24:15 +00:00
Love Hörnquist Åstrand
a21969d84d drop krb4 support
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24495 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-26 01:09:16 +00:00
Love Hörnquist Åstrand
6937d41a02 remove trailing whitespace
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23815 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 09:21:03 +00:00
Love Hörnquist Åstrand
e172367898 switch to utf8 encoding of all files
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23814 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 08:53:55 +00:00
Love Hörnquist Åstrand
9d1d030025 Use unsigned where appropriate.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22886 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 18:51:34 +00:00
Love Hörnquist Åstrand
9dccedb6d3 Check return value from asprintf instead of string != NULL since it
undefined behavior on Linux. From Björn Sandell


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16216 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-22 13:15:43 +00:00
Love Hörnquist Åstrand
2afd98c6d6 rename log10 to find_log10, because log10 in a builtin function on FreeBSD5
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14880 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-21 18:52:28 +00:00
Love Hörnquist Åstrand
5d97c60219 use readlink with bufsize - 1, From NetBSD
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11662 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-02-25 10:51:30 +00:00
Johan Danielsson
4b87042b2b uxp/v lacks _S_IFMT, but has S_IFMT
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11193 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-22 08:31:03 +00:00
Johan Danielsson
eb8685ce0b (builtin_ls): return status; also don't print fatal error messages to
the output stream, instead use syslog


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10857 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-02-28 15:49:19 +00:00
Johan Danielsson
a53e6efc5f make sure we don't include . in recursive listings
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10699 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-09-14 11:32:52 +00:00
Johan Danielsson
b7e6176ede implement -R
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10561 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-26 10:02:24 +00:00
Assar Westerlund
e61b6106c6 make -a and -A do the same as in ls(1)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10445 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-08 10:02:59 +00:00
Johan Danielsson
f00d32feb1 fix bug in previous; make it easier to build test version
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9490 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-25 01:33:15 +00:00
Johan Danielsson
6cbdce797a (lstat_file): handle case where file lives in `/'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9481 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-18 23:03:02 +00:00
Johan Danielsson
e1e87a72f8 reverse time and size sort order (pointed out by tege)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9386 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-14 00:07:20 +00:00
Johan Danielsson
addb9ef33e implement -1CFx flags
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9335 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-10 21:43:21 +00:00
Assar Westerlund
c7c7a33ef6 rename all st_mtime variables to avoid conflict with #define.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8087 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-04-02 21:25:29 +00:00
Assar Westerlund
c4c623ae05 (make_fileinfo): make sure to always call time, ctime, and gmtime with
`time_t's.  there were some types (like in lastlog) that we believed
to always be time_t.  this has proven wrong on Solaris 8 in 64-bit
mode, where they are stored as 32-bit quantities but time_t has gone
up to 64 bits


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8067 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-03-26 19:47:59 +00:00
Johan Danielsson
e2e63ad12b free some memory
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7721 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-01-05 13:48:58 +00:00
Assar Westerlund
e93c46c31d (make_fileinfo): cast to allow for non-const prototypes of readlink
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7416 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-11-20 20:49:41 +00:00
Assar Westerlund
9257b9f7f5 (S_ISSOCK, S_ISLNK): fallback definitions for systems that don't have
them (such as ultrix)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7313 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-11-04 04:52:56 +00:00
Assar Westerlund
cb5017700f (make_fileinfo): cast uid's and gid's to unsigned in printf, we don't
know what types they might be.
(lstat_file): conditionalize the kafs part on KRB4


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7284 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-29 21:20:20 +00:00
Assar Westerlund
c2b6deeb65 one \n -> \r\n
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7251 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-28 00:19:07 +00:00
Assar Westerlund
0c1544c4b7 (lstat_file): don't set st_mode, it should already be correct
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7250 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-28 00:18:06 +00:00
Assar Westerlund
b4d06166a8 don't use warnx to print errors
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7249 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-28 00:16:19 +00:00
Assar Westerlund
61033609cd (builtin_ls): fix typo, 'd' shouldn't imply 'f'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7247 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-28 00:01:15 +00:00
Assar Westerlund
9a50a06129 (lstat_file): new function for avoiding stating AFS mount points.
From Love <lha@s3.kth.se>
(list_files): use `lstat_file'


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7245 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-27 23:53:33 +00:00
Assar Westerlund
bda0ad357e check memory and such
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7157 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-17 10:55:38 +00:00
Björn Groenvall
4abf3bf24c SVR4 don't have major and minor but a new interface.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7145 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-15 15:05:25 +00:00
Björn Groenvall
91bd98d2c4 d_namlen is not portable
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7122 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-08 17:24:10 +00:00
Assar Westerlund
70f30840d8 fall-back definitions for constans and casts for printfs
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7106 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-03 21:26:21 +00:00
Johan Danielsson
cd402a1100 simple ls
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7086 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-03 16:36:30 +00:00