current directory, instead of in the directory where the source file
is located.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5989
dc483132-0cff-0310-8789-
dd5450dbe970
+Thu Jun 8 22:54:16 1995 Theodore Y. Ts'o <tytso@dcl>
+
+ * mk_cmds.c (main): Change mk_cmds so that the output file is
+ always created in the current directory, instead of in the
+ directory where the source file is located.
+
Thu Apr 27 12:26:26 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
* pager.c: Use posix signals.
{
char c_file[MAXPATHLEN];
int result;
- char *path, *p;
+ char *path, *p, *q;
if (argc != 2) {
fputs("Usage: ", stderr);
p = strrchr(path, '.');
*p = '\0';
- strcpy(c_file, path);
+ q = rindex(path, '/');
+ strcpy(c_file, (q) ? q + 1 : path);
strcat(c_file, ".c");
*p = '.';