Commit Graph

49 Commits

Author SHA1 Message Date
Todd C. Miller
a7b14880ab if given a fully-qualified or relative path we now check it
with sudo_goodpath() and error out with the appropriate error
message if the file does not exist or is not executable
1995-09-01 04:04:43 +00:00
Todd C. Miller
964e5aae93 fixed prreadlink() prototype 1995-07-18 17:35:56 +00:00
Todd C. Miller
dda75b2fd7 NULL -> '\0' 1995-03-29 20:58:57 +00:00
Todd C. Miller
8a7d8fb41c don't check for execute/statable if fq or relative path given 1995-03-28 15:34:56 +00:00
Todd C. Miller
4125ee07ac removed all the realpath() stuff 1995-03-26 06:16:43 +00:00
Todd C. Miller
c3ac93caa0 added calls to sudo_goodpath() 1995-03-26 01:39:14 +00:00
Todd C. Miller
35a22d345b added (void) casts to printf's 1995-03-24 19:15:43 +00:00
Todd C. Miller
0759d48099 now check to see that what we are trying to run is a file (or a link
to a file, we do a stat(2) so there is no diff)
1995-03-23 04:13:11 +00:00
Todd C. Miller
4fa8a93f62 find_path() now takes 2 copyout parameters (one for the qualified pathname
and one for the unqualified pathname).  The third parameter may be NULL.
1995-01-16 21:32:30 +00:00
Todd C. Miller
db8b50d821 now includes options.h 1995-01-11 23:43:45 +00:00
Todd C. Miller
c367fa7029 readlink() is now declared as returning ssize~_t 1994-09-20 00:53:34 +00:00
Todd C. Miller
525954e1b2 changed sudo-bugs.cs.colorado.edu -> sudo-bugs@cs.colorado.ed 1994-09-02 19:54:28 +00:00
Todd C. Miller
380be0c4c8 added include of netinet/in.h 1994-08-12 01:58:03 +00:00
Todd C. Miller
aaefd1c3a1 don't do malloc decl if gnuc 1994-08-08 17:05:22 +00:00
Todd C. Miller
e54f35e718 ansi-fied !STDC_HEADER function prottypes 1994-08-08 04:41:20 +00:00
Todd C. Miller
38b6d5f1df added params to func decls when STDC_HEADERS is not defined 1994-08-08 04:06:48 +00:00
Todd C. Miller
494d1c1168 made command (and therefor cmnd dynamically allocated) 1994-08-05 20:12:09 +00:00
Todd C. Miller
0b185cb71e changed MAXPATHLEN r to MAXPATHLEN+1 1994-08-05 00:20:17 +00:00
Todd C. Miller
3353665bbb fixed off by one error with MAXPATHLEN and fixed a comment 1994-08-05 00:17:47 +00:00
Todd C. Miller
3c318d8ae4 removed an XXX 1994-08-01 17:39:33 +00:00
Todd C. Miller
93230e6c29 now use sudo_realpath() 1994-07-25 22:25:58 +00:00
Todd C. Miller
bcdde9854e rewrote to use realpath(3) - nis now all my code 1994-06-06 00:03:26 +00:00
Todd C. Miller
c1d9e44e5b now don't bitch if get EACCESS (treat like EPERM) 1994-05-25 19:48:29 +00:00
Todd C. Miller
f12f25204d moved cwd stuff 1994-05-24 20:17:43 +00:00
Todd C. Miller
e4488ba028 now use _S_* stat stuff to be ansi-like 1994-03-12 19:33:10 +00:00
Todd C. Miller
6a83afd8e2 udpated version 1994-03-12 18:55:39 +00:00
Todd C. Miller
1ed1db9cf3 updated to work with configure + pathnames.h 1994-03-12 18:36:53 +00:00
Todd C. Miller
e179047086 sudo won't bitch about EPERM now, for real 1994-03-01 21:31:30 +00:00
Todd C. Miller
5bbf149cb6 now ignore EPERM 1994-02-16 17:53:18 +00:00
Todd C. Miller
e3763dbc9b fixed typo 1994-02-09 19:54:44 +00:00
Todd C. Miller
7a96a43a54 more verbose eror messages 1994-01-31 00:42:26 +00:00
Todd C. Miller
0535ec788f always include strings.h 1993-12-06 06:12:34 +00:00
Todd C. Miller
62ea70cb3a added patches from John_Rouillard
directory spec
	uses EDITOR
1993-12-03 02:35:16 +00:00
Todd C. Miller
73c4682464 now uses STD_HEADERS macro 1993-11-30 00:14:02 +00:00
Todd C. Miller
594284b224 updated version number and took out jeff's email (since it is invalid) 1993-11-27 23:42:49 +00:00
Todd C. Miller
9ad66eb1aa now return NULL instead pfof exiting for nopnn-fatal errors 1993-10-23 00:46:05 +00:00
Todd C. Miller
ca882aafca stat now ignores EINVAL 1993-10-15 20:03:14 +00:00
Todd C. Miller
11dfd7ef4b now declare strdup as extern 1993-10-06 01:48:53 +00:00
Todd C. Miller
e75a6d3b54 used indent to "fix" coding style 1993-10-04 19:10:33 +00:00
Todd C. Miller
847ce91e0f now checks '.' or '.' or '' in PATH -- but does it LAST
should maybe move the code that does this into the loop body.
makes it messier tho.  hmmm.
1993-10-04 00:12:35 +00:00
Todd C. Miller
2ddeba57ef redid the fix for non-executable files in an easier to read way plus
some minor aethetic changes
1993-09-08 15:53:08 +00:00
Todd C. Miller
fde49b4c75 fixed bug with non-executable tings of same name in path introduced by checkig errno
after stat(2).
1993-09-08 15:39:08 +00:00
Todd C. Miller
c3636ccc41 now handles decending below '/' correctly 1993-09-05 13:55:34 +00:00
Todd C. Miller
81d0c1f6df rewritten by millert 1993-09-04 19:18:57 +00:00
Todd C. Miller
51deb28dbb ENOTDIR is ok now too (in case part of the path is bogus) 1993-09-04 18:08:15 +00:00
Todd C. Miller
065775e4a3 now works if you do sudo bin/test 1993-03-13 20:09:38 +00:00
Todd C. Miller
ff04cc5e1c works 1993-03-13 19:20:15 +00:00
Todd C. Miller
96a16b6264 now only execs files with (an) executable bit set. 1993-02-16 03:27:57 +00:00
Todd C. Miller
0a8420d1ad Initial revision 1993-02-16 03:01:06 +00:00