-/* $OpenBSD: cmds.c,v 1.10 1997/01/25 21:42:27 deraadt Exp $ */
+/* $OpenBSD: cmds.c,v 1.11 1997/01/28 20:48:40 millert Exp $ */
/* $NetBSD: cmds.c,v 1.8 1995/09/08 01:06:05 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)cmds.c 8.6 (Berkeley) 10/9/94";
#else
-static char rcsid[] = "$OpenBSD: cmds.c,v 1.10 1997/01/25 21:42:27 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: cmds.c,v 1.11 1997/01/28 20:48:40 millert Exp $";
#endif
#endif /* not lint */
code = -1;
return;
}
- if (getwd(buf) != NULL)
+ if (getcwd(buf, sizeof(buf)) != NULL)
printf("Local directory now %s\n", buf);
else
- warnx("getwd: %s", buf);
+ warnx("getcwd: %s", buf);
code = 0;
}