commit b0287201de4cae5748e43d549a8418fb9b765604
parent 2efa465920e2091f70295c057438a37168b3e7cd
Author: kqueue <kqueue@cocaine.ninja>
Date: Wed, 28 Dec 2022 22:38:52 -0500
fixed the list command
Diffstat:
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
@@ -1,5 +1,6 @@
# Passman: the new standard unix password manager
-Passman was inspired by [password-store](https://www.passwordstore.org/), but there are some key differences. Passman is written in C while password-store is written in Bash, and passman uses state of the art cryptography(XChaCha20-Poly1305, Blake2B, Argon2i) while pass uses old and insecure gnupg(see [the pgp problem](https://latacora.micro.blog/2019/07/16/the-pgp-problem.html). It's about as simple as it gets, and extremely secure.
+Passman was inspired by [password-store](https://www.passwordstore.org/), but there are some key differences.
+Passman is written in C while password-store is written in Bash, and passman uses state of the art cryptography(XChaCha20-Poly1305, Blake2B, Argon2i) while pass uses old and insecure gnupg(see [the pgp problem](https://latacora.micro.blog/2019/07/16/the-pgp-problem.html). It's about as simple as it gets, and extremely secure.
## Installation
Note that passman only runs on Linux and BSD(OpenBSD, FreeBSD, NetBSD, DragonFlyBSD and very likely Macos)
``
diff --git a/passman.c b/passman.c
@@ -248,7 +248,7 @@ void walk(char *path, int len)
sprintf(dir, "%s/%s", path, de->d_name);
walk(dir, len);
} else {
- printf("%s%s\n", path + len, de->d_name);
+ printf("%s/%s\n", path + len, de->d_name);
}
}
closedir(dr);
@@ -326,7 +326,7 @@ int main(int argc, char *argv[])
} else if (strcmp(argv[1], "list") == 0) {
char path[500];
sprintf(path, "%s/.passman-store/", getenv("HOME"));
- walk(path, strlen(path));
+ walk(path, strlen(path)+1);
} else {
puts("wtf");
return 0;