Skip to content

duc.c: Create ~/.cache if needed#296

Open
licy183 wants to merge 1 commit intozevv:masterfrom
licy183:master
Open

duc.c: Create ~/.cache if needed#296
licy183 wants to merge 1 commit intozevv:masterfrom
licy183:master

Conversation

@licy183
Copy link
Copy Markdown

@licy183 licy183 commented Jul 26, 2022

If ~/.cache doesn't exist, some error will happen. See termux/termux-packages#11350 (comment).

@l8gravely
Copy link
Copy Markdown
Collaborator

I'd merge this, but you need to handle errors better. If the mkdir() call fails, duc needs to error our more gracefully. I like the idea, but it needs some more work.

And apologies for the delay, now that v1.5.0-rc1 is about to come out, it would be great if you could re-spin this to address these issues.

@jmtd
Copy link
Copy Markdown
Contributor

jmtd commented Apr 1, 2026

Erm, 5da92b8 causes duc to fatally exit if the mkdir fails, which occurs if the directory already exists...

@jmtd jmtd mentioned this pull request Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants