Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 216838
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo's Team for Core System packages <base-system@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: marty rosenberg <marty.rosenberg@gmail.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
slocate-3.1-null.patch patch for null terminated output text/plain marty rosenberg 2008-04-08 08:52 0000 2.29 KB Details
slocate-3.1-null.patch patch that actually works text/plain marty rosenberg 2008-04-08 09:24 0000 122.05 KB Details
slocate-3.1-null.patch cruft removed patch patch marty rosenberg 2008-04-09 21:38 0000 2.28 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 216838 depends on: Show dependency tree
Bug 216838 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-04-08 08:51 0000
this patch adds the -0 flag to slocate that will force slocate's output to be
null terminated rather than newline terminated in a manner similar to find
-print0, and compatible with xargs -0.

Reproducible: Always

Steps to Reproduce:
slocate doesn't have this option by default.

------- Comment #1 From marty rosenberg 2008-04-08 08:52:09 0000 -------
Created an attachment (id=149086) [details]
patch for null terminated output

------- Comment #2 From marty rosenberg 2008-04-08 09:24:26 0000 -------
Created an attachment (id=149089) [details]
patch that actually works

printf("%s\0", foo); doesn't do what you want it to do.  Also made the --help
output fit into an 80 character terminal

------- Comment #3 From Doug Goldstein 2008-04-09 18:38:19 0000 -------
Your latest patch has some extra cruft in it that makes it tough to read.
Remove all your files ending in ~ and redo it. Thanks.

------- Comment #4 From marty rosenberg 2008-04-09 21:38:04 0000 -------
Created an attachment (id=149243) [details]
cruft removed patch

------- Comment #5 From SpanKY 2008-04-10 03:52:31 0000 -------
that still has whitespace noise, but it's easier to fix now

did you send this upstream ?  patch looks fine (havent tested it myself)

------- Comment #6 From marty rosenberg 2008-04-10 06:20:19 0000 -------
(In reply to comment #5)
> that still has whitespace noise, but it's easier to fix now
> 
> did you send this upstream ?  patch looks fine (havent tested it myself)
> 

Sent it upstream when I made the patch(and when I fixed it).  Haven't heard
back from them yet.

------- Comment #7 From SpanKY 2008-08-19 00:55:51 0000 -------
thanks, added to slocate-3.1-r2

http://sources.gentoo.org/sys-apps/slocate/files/slocate-3.1-NUL.patch?rev=1.1

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug