FreeBSD Bugzilla – Attachment 146181 Details for
Bug 192851
sysutils/simple-mtpfs: allow use in fstab or autofs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
ignore device_file argument on fail
patch-fstab-hack (text/plain), 893 bytes, created by
Jan Beich
on 2014-08-23 16:03:34 UTC
(
hide
)
Description:
ignore device_file argument on fail
Filename:
MIME Type:
Creator:
Jan Beich
Created:
2014-08-23 16:03:34 UTC
Size:
893 bytes
patch
obsolete
>--- src/simple-mtpfs-fuse.cpp~ >+++ src/simple-mtpfs-fuse.cpp >@@ -314,7 +314,7 @@ bool SMTPFileSystem::parseOptions(int ar > > --m_options.m_device_no; > >-#ifdef HAVE_LIBUSB1 >+#if 0 //def HAVE_LIBUSB1 > // device file and -- device are mutually exclusive, fail if both set > if (m_options.m_device_no && m_options.m_device_file) { > m_options.m_good = false; >@@ -383,11 +383,9 @@ bool SMTPFileSystem::exec() > } > > #ifdef HAVE_LIBUSB1 >- if (m_options.m_device_file) { >- // Try to use device file first, if provided >- if (!m_device.connect(m_options.m_device_file)) >- return false; >- } else >+ // Try to use device file first, ignore otherwise >+ if (!m_options.m_device_file || >+ !m_device.connect(m_options.m_device_file)) > #endif // HAVE_LIBUSB1 > { > // Connect to MTP device by order number, if no device file supplied
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 192851
:
146066
|
146087
| 146181 |
146183
|
146220