Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Feb 2021 17:03:17 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 236393] sysutils/sg3_utils After update to 1.44 relative path of device is no longer accepted
Message-ID:  <bug-236393-7788-bElIqCiFzR@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-236393-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-236393-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236393

Dmitry Marakasov <amdmi3@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |Closed
           Assignee|ports-bugs@FreeBSD.org      |amdmi3@FreeBSD.org
         Resolution|---                         |Works As Intended

--- Comment #3 from Dmitry Marakasov <amdmi3@FreeBSD.org> ---
Judging by the code, this behavior is at least explainable, as there's stat=
(2)
call on device name passed as-is:

https://github.com/hreinecke/sg3_utils/blob/d82f040c69689305ca1d318d3dc0e1e=
42ab6ffa3/lib/sg_pt_freebsd.c#L185

This behavior was likely introduced in this commit:

https://github.com/hreinecke/sg3_utils/commit/d44a4b8fa5fe56394c4299b5af714=
409ff64f13b#diff-c606bb382809d352875315e606f67881c0ef7a277a51c9a67b7523f897=
ad3a9aR150

It worked before because there was no stat(2) call and device name was pass=
ed
right to cam_get_device(3) which performs additional parsing. This may be an
upstream bug, reported as https://github.com/hreinecke/sg3_utils/issues/65.

Since it's not really related to the port, submitter is no longer intereste=
d in
a fix and there's no maintainer, closing this PR.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-236393-7788-bElIqCiFzR>