Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Mar 2012 11:18:40 GMT
From:      Pietro Cerutti <gahr@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/165853: [patch] devel/sdl12 -- fix CDROM device names
Message-ID:  <201203081118.q28BIe3e050020@red.freebsd.org>
Resent-Message-ID: <201203081120.q28BK8t0033858@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         165853
>Category:       ports
>Synopsis:       [patch] devel/sdl12 -- fix CDROM device names
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 08 11:20:08 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Pietro Cerutti
>Release:        
>Organization:
The FreeBSD Project
>Environment:
>Description:
CDROM names in libsdl-1.2 still have a 'c' at the tail (/dev/cd0c).

The patch file attached fixes this.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- src/cdrom/freebsd/SDL_syscdrom.c.orig	2012-03-08 12:04:47.000000000 +0100
+++ src/cdrom/freebsd/SDL_syscdrom.c	2012-03-08 12:04:54.000000000 +0100
@@ -188,7 +188,7 @@
 			char *insert;
 			exists = 1;
 			for ( j=checklist[i][1]; exists; ++j ) {
-				SDL_snprintf(drive, SDL_arraysize(drive), "/dev/%sc", &checklist[i][3]);
+				SDL_snprintf(drive, SDL_arraysize(drive), "/dev/%s", &checklist[i][3]);
 				insert = SDL_strchr(drive, '?');
 				if ( insert != NULL ) {
 					*insert = j;


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201203081118.q28BIe3e050020>