Bug 118138 - [Update] Updating multimedia/shell-fm to version 0.4
Summary: [Update] Updating multimedia/shell-fm to version 0.4
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-19 21:50 UTC by ntarmos
Modified: 2007-12-14 22:20 UTC (History)
0 users

See Also:


Attachments
patch-shell-fm-0.4 (19.58 KB, text/plain)
2007-11-19 21:50 UTC, ntarmos
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description ntarmos 2007-11-19 21:50:02 UTC
	
Updating multimedia/shell-fm to version 0.4, also bumping PORTEPOCH
since the versioning system moves from a date-based number to a
x.x-based one.
Comment 1 ntarmos 2007-11-27 10:45:28 UTC
Explicitly zeroing the last byte in strndup and bumping PORTREVISION.
This is to be applied after the above patch.

Thanks.

\n\n

--- shell-fm-v0.4.1.diff begins here ---
diff --git a/shell-fm/Makefile b/shell-fm/Makefile
index 1bffd5c..0184223 100644
--- a/shell-fm/Makefile
+++ b/shell-fm/Makefile
@@ -7,6 +7,7 @@
 
 PORTNAME=	shell-fm
 PORTVERSION=	0.4
+PORTREVISION=	1
 PORTEPOC=	1
 CATEGORIES=	multimedia
 MASTER_SITES=	http://ntarmos.dyndns.org/Software/FreeBSD/
diff --git a/shell-fm/files/patch-strndup.c b/shell-fm/files/patch-strndup.c
index 58ef9f1..a23f3c0 100644
--- a/shell-fm/files/patch-strndup.c
+++ b/shell-fm/files/patch-strndup.c
@@ -1,6 +1,6 @@
 --- src/strndup.c.orig	Sat Dec 16 04:21:22 2006
 +++ src/strndup.c	Sat Dec 16 04:20:48 2006
-@@ -0,0 +1,14 @@
+@@ -0,0 +1,17 @@
 +#include "strndup.h"
 +#include <string.h>
 +#include <stdlib.h>
@@ -9,7 +9,10 @@
 +
 +char* strndup(const char*  src, size_t len) {
 +	char* _tmpStr = (char*)malloc(len + 1);
-+	strncpy(_tmpStr, src, len);
++	if (_tmpStr) {
++		strncpy(_tmpStr, src, len);
++		_tmpStr[len] = 0;
++	}
 +	return _tmpStr;
 +}
 +
--- shell-fm-v0.4.1.diff ends here ---
Comment 2 Pav Lucistnik freebsd_committer freebsd_triage 2007-12-14 22:06:11 UTC
State Changed
From-To: open->closed

Committed, thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2007-12-14 22:10:08 UTC
pav         2007-12-14 22:09:58 UTC

  FreeBSD ports repository

  Modified files:
    multimedia/shell-fm  Makefile distinfo 
    multimedia/shell-fm/files patch-shell-fm.1 patch-strndup.c 
  Removed files:
    multimedia/shell-fm/files patch-reconfig patch-rl_completion.h 
  Log:
  - Update to 0.4
  
  PR:             ports/118138
  Submitted by:   Nikos Ntarmos <ntarmos@ceid.upatras.gr> (maintainer)
  
  Revision  Changes    Path
  1.6       +17 -10    ports/multimedia/shell-fm/Makefile
  1.3       +3 -3      ports/multimedia/shell-fm/distinfo
  1.4       +0 -18     ports/multimedia/shell-fm/files/patch-reconfig (dead)
  1.2       +0 -11     ports/multimedia/shell-fm/files/patch-rl_completion.h (dead)
  1.3       +135 -91   ports/multimedia/shell-fm/files/patch-shell-fm.1
  1.3       +31 -28    ports/multimedia/shell-fm/files/patch-strndup.c
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"