Fossil SCM
pwd too big: max 1999
Fixed
f628d183c958c5b…
· opened 14 years, 9 months ago
- Type
- Code_Defect
- Priority
- —
- Severity
- Minor
- Resolution
- Fixed
- Subsystem
- —
- Created
- June 17, 2011 7:04 p.m.
In file.c, getcwd() can return NULL by different causes.
One that got me mad is that a shell is in a directory that someone removed. 'ls' still works there, but any fossil operation returns 'pwd too big: max 1999'.
Showing strerror(errno) would have tought me what to do, as I only discovered the cause of getcwd()==0 through gdb. My pwd was '/tmp/f', that isn't very big. :)
viriketo added on 2011-06-17 20:14:54 UTC: I don't see anything using strerror() in fossil, so I'm not sure how to fix this.