version 1.122, 2017/04/20 03:04:11 |
version 1.123, 2019/04/22 18:32:09 |
|
|
/* curdir is cwd... */ |
/* curdir is cwd... */ |
cwd = dogetcwd(); |
cwd = dogetcwd(); |
if (cwd == NULL) |
if (cwd == NULL) |
err(2, "%s", strerror(errno)); |
err(2, "getcwd"); |
|
|
if (stat(cwd, &sa) == -1) |
if (stat(cwd, &sa) == -1) |
err(2, "%s: %s", cwd, strerror(errno)); |
err(2, "%s", cwd); |
|
|
/* ...but we can use the alias $PWD if we can prove it is the same |
/* ...but we can use the alias $PWD if we can prove it is the same |
* directory */ |
* directory */ |