wavemon crashes with "Segmentation fault" if config-File cannot be written
Bug #209722 reported by
PinKing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
wavemon (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
Binary package hint: wavemon
Hello,
i start wavemon 0.4.0b-11 on a system, were the folder is read-only, were wavemon will save his
config-file. So wavemon crashes with "Segmentation fault", if you try to save the file.
I think this in file conf.c function write_cf() will not clearly work:
...
if ((fd = fopen(cfname, "w")) < 0) fatal_error("cannot open %s", cfname);
ll_reset(cfld);
while ((lp = ll_getall(cfld))) fputs(lp, fd);
fclose(fd);
....
I think it is the same about the other fopen() functions in wavemon.
Hope you understand me. Excuse my bad english.
Yours sincerely, Pinking.
Related branches
Changed in wavemon: | |
importance: | Undecided → Low |
status: | New → Confirmed |
To post a comment you must log in.
Here's the debdiff that fixes this bug and also fixes: /bugs.launchpad .net/ubuntu/ +source/ wavemon/ +bug/209727
https:/
http:// launchpadlibrar ian.net/ 20786912/ wavemon_ 0.4.0b- 11ubuntu2. debdiff
This is a debdiff against 0.4.0b-11.
Built and tested.