[PATCH] allow device specification to be a symlink

Nick Black dankamongmen at gmail.com
Fri Mar 8 03:26:33 UTC 2019


Dan Williams left as an exercise for the reader:
> Can you abstract the link checking into a separate function, since it's
> used in two places? No problem to allocate a new string in both cases
> (symlink and not) and return it to the caller.

Sure. I've gone ahead and done so. The two patches are attached.

-- 
nick black -=- https://www.nick-black.com
to make an apple pie from scratch, you need first invent a universe.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Support-device-specification-that-is-a-symlink.patch
Type: text/x-diff
Size: 4130 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/libqmi-devel/attachments/20190307/e67b716b/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Extract-__qmi_utils_get_devname-replace-callsites.patch
Type: text/x-diff
Size: 3469 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/libqmi-devel/attachments/20190307/e67b716b/attachment-0001.patch>


More information about the libqmi-devel mailing list