AVR Downloader/UploaDEr - Bugs: bug #53279, Permission denied accessing...
You are not allowed to post comments on this tracker with your current authentication level.
bug #53279: Permission denied accessing /sys/class/gpio/gpioX/direction would leave pin exported
Submitter: | None | ||
Submitted: | Sat 03 Mar 2018 10:10:16 PM UTC | ||
Category: | None | Severity: | 3 - Normal |
Priority: | 5 - Normal | Item Group: | None |
Status: | None | Privacy: | Public |
Assigned to: | None | Originator Name: | Michael Cain |
Originator Email: | -email is unavailable- | Open/Closed: | Open |
Release: | 6.3 | Programmer hardware: | linuxgpio |
Device type: | RaspberryPi |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
No changes have been made to this item
When using a Raspberry Pi to program an atmega2560 using linuxgpio and you do not have the permission to access /sys/class/gpio/gpioX/direction it would leave the gpio pin exported. The only way to unexport the pin would be to reboot the Rasbperry Pi.
The problem lies in the function linuxgpio_open, change line 280 from:
if (r < 0)
return r;
TO:
if (r < 0) {
linuxgpio_unexport(pin);
return r;
}