[Bug 79941] bluetoothd won't read stored device key upon restart

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.kernel.org/show_bug.cgi?id=79941

--- Comment #5 from Johan Hedberg <johan.hedberg@xxxxxxxxx> ---
Created attachment 142711
  --> https://bugzilla.kernel.org/attachment.cgi?id=142711&action=edit
Alternate patch

DT_UNKNOWN could indeed be the cause of this, but I'd avoid modifying the
already largish loop by having a helper function for the lstat call. Either way
it'd be good to know if one of the patches fixes the issue. It'd also be good
to know exactly what kind of setup you have (libc version, kernel version,
filesystem type, etc).

Some unrelated notes: PATH_MAX already contains the terminating null so +1 is
unnecessary. Also, snprintf (unlike strncpy) guarantees a terminating null so
no need to force that after the call. Both of these issues should probably be
fixed in many places of the code base.

-- 
You are receiving this mail because:
You are the assignee for the bug.
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux