summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--bin/bri.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/bri.c b/bin/bri.c
index 133673dd..413958c5 100644
--- a/bin/bri.c
+++ b/bin/bri.c
@@ -34,14 +34,14 @@ int main(int argc, char *argv[]) {
     if (error) err(EX_OSFILE, "%s", CLASS);
 
     DIR *dir = opendir(".");
-    if (!dir) err(EX_NOPERM, "%s", CLASS);
+    if (!dir) err(EX_OSFILE, "%s", CLASS);
 
     struct dirent *entry;
     while (NULL != (errno = 0, entry = readdir(dir))) {
         if (entry->d_name[0] == '.') continue;
 
         error = chdir(entry->d_name);
-        if (error) err(EX_NOPERM, "%s/%s", CLASS, entry->d_name);
+        if (error) err(EX_OSFILE, "%s/%s", CLASS, entry->d_name);
         break;
     }
     if (!entry) {
@@ -50,7 +50,7 @@ int main(int argc, char *argv[]) {
     }
 
     FILE *actual = fopen("actual_brightness", "r");
-    if (!actual) err(EX_NOPERM, "%s/actual_brightness", CLASS);
+    if (!actual) err(EX_OSFILE, "%s/actual_brightness", CLASS);
 
     unsigned value;
     int match = fscanf(actual, "%u", &value);
@@ -74,7 +74,7 @@ int main(int argc, char *argv[]) {
     }
 
     FILE *brightness = fopen("brightness", "w");
-    if (!brightness) err(EX_NOPERM, "%s/brightness", CLASS);
+    if (!brightness) err(EX_OSFILE, "%s/brightness", CLASS);
 
     int size = fprintf(brightness, "%u", value);
     if (size < 0) err(EX_IOERR, "brightness");
2024-09-24Add photos from September 14June McEnroe 2024-09-24Add photos from September 12June McEnroe 2024-09-24Add photos from September 7June McEnroe 2024-09-24Allow not having descriptionsJune McEnroe I'm sorry, I can't keep writing descriptions. It makes posting photos take too long, I often don't know the words for what I'm looking at, and a good description is an entirely different work of art than the photo I took, and I'm just a photographer. It's visual art. 2024-09-23Automatically select the last used lens for a bodyJune McEnroe 2024-09-19Add photos from September 5June McEnroe Had to prefix the folder number onto these file names manually because they must have come out of a different scanner or something. 2024-09-15Add some more film stocks to the listJune McEnroe 2024-09-13Add photos from September 2June McEnroe 2024-09-13Add Fomapan 200 to films listJune McEnroe 2024-09-10Add August 29 picnic photosJune McEnroe 2024-09-08Apply some bold to trips renderingJune McEnroe This seems easier to visually scan. The only other thing I'd like is a nicer date rendering but JavaScript is useless for that. 2024-09-08Render trips hopefully more efficientlyJune McEnroe 2024-09-08Allow removing bodies and lensesJune McEnroe 2024-09-08Limit body width so it looks less silly on desktopJune McEnroe 2024-09-07Handle no film being loadedJune McEnroe 2024-09-07Fancy up the text a littleJune McEnroe