Commit 9c20af98 authored by Steve Kemp's avatar Steve Kemp Committed by Andreas Tille

Import Debian changes 2.2.2-1woody1

lbreakout2 (2.2.2-1woody1) stable-security; urgency=high

  * Non maintainer upload by the Security Team.
  * Fix numerous buffer overflows due to improper use of environmental
    variables (CAN-2004-0158).

lbreakout2 (2.2.2-1) unstable; urgency=low

  * New upstream release

lbreakout2 (2.2.1-1) unstable; urgency=low

  * New upstream release
    - Hack to prevent endless loops.  (Closes: #132008)

lbreakout2 (2.2-1) unstable; urgency=low

  * New upstream release
  * Better description (Closes: #129143)

lbreakout2 (2.1.2-2) unstable; urgency=low

  * Recompile to fix linkage problems.  (Closes: #129318)

lbreakout2 (2.1.2-1) unstable; urgency=low

  * New upstream release

lbreakout2 (2.1.1-1) unstable; urgency=low

  * New upstream release

lbreakout2 (2.1-1) unstable; urgency=low

  * New upstream release
    - Strange behavior with ball getting trapped at the bottom of the
    screen fixed.  (Closes: #125725)

lbreakout2 (2.0.1-2) unstable; urgency=low

  * Added a debian/watch file.

lbreakout2 (2.0.1-1) unstable; urgency=low

  * New upstream release

lbreakout2 (2.0-1) unstable; urgency=low

  * New upstream release.  This is a real 2.0 release.  No more nasty
  version numbers and source packages, yay :-)

lbreakout2 (2.0-0pre2) unstable; urgency=low

  * New upstream release (same deal)
    - Score modifiers are fixed.  (Closes: #120378)
    - #121187 may or may not be fixed.  I don't know for sure.
      Leaving it open for the time being.
  * No longer install manpage in /usr/share/doc (Doh, Closes: #117567)

lbreakout2 (2.0-0pre1) unstable; urgency=low

  * New upstream release.  (still nasty source.  Author is working on it..)

lbreakout2 (2.0-0beta1) unstable; urgency=low

  * New upstream release.  (still has the nasty native-source issue)

lbreakout2 (2.0-0alpha2) unstable; urgency=low

  * Added build-depends for libpng2-dev and libsdl-mixer1.2. (Closes: #117401)
  * Fixed the broken version number in the last upload before it got
  into incoming..this makes the package falsely native again, but this will
  be resolved when the upstream author releases a real version 2.0.  (which
  I hope will be RSN)

lbreakout2 (2.0alpha2-1alpha) unstable; urgency=low

  * New upstream version.  (the previous version was uploaded as native..oops)
    - Works in color depths other than 16.

lbreakout2 (2.0-0alpha) unstable; urgency=low

  * New upstream version.  Packaging mostly redone, and binary and source
  packages renamed.  (Closes: #116363)

lbreakout (010315-3) unstable; urgency=low

  * Build against SDL 1.2.

lbreakout (010315-2) unstable; urgency=low

  * Work around the fact that libsdl1.1-dev doesn't depend on xlibs-dev.
  (so we have to build-depend on it ourselves)
    Does not close the bug filed because I believe it to actually be a bug
  in libsdl1.1-dev.

lbreakout (010315-1) unstable; urgency=low

  * New upstream version.  (may fix 77878, I need to check)

lbreakout (001104-4) unstable; urgency=low

  * Convert to using statoverride instead of dh_suidregister.
  * Change maintainer address to be @debian.org
  * Remove an extraneous template file that accidentally got left in debian/

lbreakout (001104-3) unstable; urgency=low

  * Don't even bother trying to save high-score files from before I fixed
  lbreakout to avoid clobbering them, or I'll be squashing bugs from now
  till the presidential election is decided..  (I thought I tested the case
  that broke before releasing -2, but I guess not.. :( )
    closes: #77066

lbreakout (001104-2) unstable; urgency=low

  * Don't clobber the highscore file on each upgrade.
   (closes: #76406, #76701)

lbreakout (001104-1) unstable; urgency=low

  * New upstream version.

lbreakout (001022-1) unstable; urgency=low

  * New upstream version.

lbreakout (001014-4) unstable; urgency=low

  * Oops.  High-scores actually go in /var/games.  (closes: #75873)

lbreakout (001014-3) unstable; urgency=low

  * Rebuild against old X libraries before Branden comes after me with a stick.
  (closes: #74907, #74923, #74934)
  * Add automake and autoconf to the build-depends (are they really necessary?)

lbreakout (001014-2) unstable; urgency=low

  * Oops.  Menufile was bad.  Mea culpa.
  * Mention fullscreen and warped-mouse play in README.Debian.

lbreakout (001014-1) unstable; urgency=low

  * Initial Release.  (closes: #74800)
parent 124e7928
lbreakout2 (2.2.2-1woody1) stable-security; urgency=high
* Non maintainer upload by the Security Team.
* Fix numerous buffer overflows due to improper use of environmental
variables (CAN-2004-0158).
-- Steve Kemp <skx@debian.org> Wed, 11 Feb 2004 11:43:13 +0000
lbreakout2 (2.2.2-1) unstable; urgency=low
* New upstream release
-- Daniel Burrows <dburrows@debian.org> Sun, 24 Feb 2002 11:26:56 -0500
lbreakout2 (2.2.1-1) unstable; urgency=low
* New upstream release
- Hack to prevent endless loops. (Closes: #132008)
-- Daniel Burrows <dburrows@debian.org> Mon, 4 Feb 2002 14:08:55 -0500
lbreakout2 (2.2-1) unstable; urgency=low
* New upstream release
* Better description (Closes: #129143)
-- Daniel Burrows <dburrows@debian.org> Fri, 25 Jan 2002 14:12:52 -0500
lbreakout2 (2.1.2-2) unstable; urgency=low
* Recompile to fix linkage problems. (Closes: #129318)
-- Daniel Burrows <dburrows@debian.org> Sat, 19 Jan 2002 13:01:30 -0500
lbreakout2 (2.1.2-1) unstable; urgency=low
* New upstream release
-- Daniel Burrows <dburrows@debian.org> Fri, 11 Jan 2002 17:39:54 -0500
lbreakout2 (2.1.1-1) unstable; urgency=low
* New upstream release
-- Daniel Burrows <dburrows@debian.org> Wed, 26 Dec 2001 11:56:56 -0500
lbreakout2 (2.1-1) unstable; urgency=low
* New upstream release
- Strange behavior with ball getting trapped at the bottom of the
screen fixed. (Closes: #125725)
-- Daniel Burrows <dburrows@debian.org> Sat, 22 Dec 2001 08:18:16 -0500
lbreakout2 (2.0.1-2) unstable; urgency=low
* Added a debian/watch file.
-- Daniel Burrows <dburrows@debian.org> Sat, 8 Dec 2001 13:24:48 -0500
lbreakout2 (2.0.1-1) unstable; urgency=low
* New upstream release
-- Daniel Burrows <dburrows@debian.org> Sat, 8 Dec 2001 13:07:52 -0500
lbreakout2 (2.0-1) unstable; urgency=low
* New upstream release. This is a real 2.0 release. No more nasty
version numbers and source packages, yay :-)
-- Daniel Burrows <dburrows@debian.org> Sun, 2 Dec 2001 22:33:55 -0500
lbreakout2 (2.0-0pre2) unstable; urgency=low
* New upstream release (same deal)
- Score modifiers are fixed. (Closes: #120378)
- #121187 may or may not be fixed. I don't know for sure.
Leaving it open for the time being.
* No longer install manpage in /usr/share/doc (Doh, Closes: #117567)
-- Daniel Burrows <dburrows@debian.org> Tue, 27 Nov 2001 22:55:42 -0500
lbreakout2 (2.0-0pre1) unstable; urgency=low
* New upstream release. (still nasty source. Author is working on it..)
-- Daniel Burrows <dburrows@debian.org> Wed, 21 Nov 2001 13:05:25 -0500
lbreakout2 (2.0-0beta1) unstable; urgency=low
* New upstream release. (still has the nasty native-source issue)
-- Daniel Burrows <dburrows@debian.org> Sat, 17 Nov 2001 00:06:52 -0500
lbreakout2 (2.0-0alpha2) unstable; urgency=low
* Added build-depends for libpng2-dev and libsdl-mixer1.2. (Closes: #117401)
* Fixed the broken version number in the last upload before it got
into incoming..this makes the package falsely native again, but this will
be resolved when the upstream author releases a real version 2.0. (which
I hope will be RSN)
-- Daniel Burrows <dburrows@debian.org> Sun, 28 Oct 2001 13:14:02 -0500
lbreakout2 (2.0alpha2-1alpha) unstable; urgency=low
* New upstream version. (the previous version was uploaded as native..oops)
- Works in color depths other than 16.
-- Daniel Burrows <dburrows@debian.org> Sun, 28 Oct 2001 11:26:53 -0500
lbreakout2 (2.0-0alpha) unstable; urgency=low
* New upstream version. Packaging mostly redone, and binary and source
packages renamed. (Closes: #116363)
-- Daniel Burrows <dburrows@debian.org> Thu, 25 Oct 2001 22:46:32 -0400
lbreakout (010315-3) unstable; urgency=low
* Build against SDL 1.2.
-- Daniel Burrows <dburrows@debian.org> Mon, 30 Apr 2001 15:10:21 -0400
lbreakout (010315-2) unstable; urgency=low
* Work around the fact that libsdl1.1-dev doesn't depend on xlibs-dev.
(so we have to build-depend on it ourselves)
Does not close the bug filed because I believe it to actually be a bug
in libsdl1.1-dev.
-- Daniel Burrows <dburrows@debian.org> Thu, 22 Mar 2001 16:24:38 -0500
lbreakout (010315-1) unstable; urgency=low
* New upstream version. (may fix 77878, I need to check)
-- Daniel Burrows <dburrows@debian.org> Tue, 20 Mar 2001 16:57:36 -0500
lbreakout (001104-4) unstable; urgency=low
* Convert to using statoverride instead of dh_suidregister.
* Change maintainer address to be @debian.org
* Remove an extraneous template file that accidentally got left in debian/
-- Daniel Burrows <dburrows@debian.org> Sat, 10 Feb 2001 17:07:19 -0500
lbreakout (001104-3) unstable; urgency=low
* Don't even bother trying to save high-score files from before I fixed
lbreakout to avoid clobbering them, or I'll be squashing bugs from now
till the presidential election is decided.. (I thought I tested the case
that broke before releasing -2, but I guess not.. :( )
closes: #77066
-- Daniel Burrows <Daniel_Burrows@brown.edu> Tue, 14 Nov 2000 20:18:38 -0500
lbreakout (001104-2) unstable; urgency=low
* Don't clobber the highscore file on each upgrade.
(closes: #76406, #76701)
-- Daniel Burrows <Daniel_Burrows@brown.edu> Fri, 10 Nov 2000 21:16:23 -0500
lbreakout (001104-1) unstable; urgency=low
* New upstream version.
-- Daniel Burrows <Daniel_Burrows@brown.edu> Sat, 4 Nov 2000 10:02:12 -0500
lbreakout (001022-1) unstable; urgency=low
* New upstream version.
-- Daniel Burrows <Daniel_Burrows@brown.edu> Thu, 2 Nov 2000 07:39:02 -0500
lbreakout (001014-4) unstable; urgency=low
* Oops. High-scores actually go in /var/games. (closes: #75873)
-- Daniel Burrows <Daniel_Burrows@brown.edu> Sun, 29 Oct 2000 18:13:28 -0500
lbreakout (001014-3) unstable; urgency=low
* Rebuild against old X libraries before Branden comes after me with a stick.
(closes: #74907, #74923, #74934)
* Add automake and autoconf to the build-depends (are they really necessary?)
-- Daniel Burrows <Daniel_Burrows@brown.edu> Tue, 17 Oct 2000 08:25:12 -0400
lbreakout (001014-2) unstable; urgency=low
* Oops. Menufile was bad. Mea culpa.
* Mention fullscreen and warped-mouse play in README.Debian.
-- Daniel Burrows <Daniel_Burrows@brown.edu> Sun, 15 Oct 2000 13:36:03 -0400
lbreakout (001014-1) unstable; urgency=low
* Initial Release. (closes: #74800)
-- Daniel Burrows <Daniel_Burrows@brown.edu> Sun, 15 Oct 2000 09:04:54 -0400
Source: lbreakout2
Section: games
Priority: optional
Maintainer: Daniel Burrows <dburrows@debian.org>
Build-Depends: debhelper, xlibs-dev, libsdl1.2-dev, libpng2-dev, libsdl-mixer1.2-dev
Standards-Version: 3.1.1
Package: lbreakout2
Architecture: any
Depends: ${shlibs:Depends}
Conflicts: suidmanager (<< 0.50)
Description: A ball-and-paddle game with nice graphics
lbreakout2 is a game similar to the classics breakout and xboing, featuring
a number of added graphical enhancements and effects. You control a paddle
at the bottom of the playing-field, and must destroy bricks at the top
by bouncing balls against them.
.
lbreakout2 is a complete rewrite of the game "lbreakout". Users of
lbreakout probably want to install this.
This package was debianized by Daniel Burrows <dburrows@debian.org> on
Thu Oct 25 22:43:09 EDT 2001
It was downloaded from http://sourceforge.net/projects/lgames
Upstream Author(s): Michael Speck <kulkanie@gmx.net>
Copyright: GNU GPL (see /usr/share/common-licenses/GPL)
usr/games
var/games
.\" Hey, EMACS: -*- nroff -*-
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH LBREAKOUT2 6 "October 15, 2000"
.\" Please adjust this date whenever revising the manpage.
.\"
.\" Some roff macros, for reference:
.\" .nh disable hyphenation
.\" .hy enable hyphenation
.\" .ad l left justify
.\" .ad b justify to both left and right margins
.\" .nf disable filling
.\" .fi enable filling
.\" .br insert line break
.\" .sp <n> insert n+1 empty lines
.\" for manpage-specific macros, see man(7)
.SH NAME
lbreakout2 \- breakout clone with pretty graphics
.SH SYNOPSIS
.B lbreakout2
.SH DESCRIPTION
This manual page briefly documents the
.B lbreakout2
command.
This manual page was written for the Debian GNU/Linux distribution
because the original program does not have a manual page.
.br
Further documentation is available in /usr/share/doc/lbreakout/docs.
.br
\fBlbreakout\fP is a game written in the style of the games Breakout
and xboing. The goal is to eliminate a series of screens of bricks by
repeatedly striking them with bouncing balls.
.SH OPTIONS
lbreakout accepts no options.
.SH SEE ALSO
/usr/share/doc/lbreakout/docs/index.html
.SH AUTHOR
This manual page was written by Daniel Burrows <Daniel_Burrows@brown.edu>,
for the Debian GNU/Linux system (but may be used by others).
?package(lbreakout2):needs=X11 section=Games/Arcade\
title="lbreakout2" command="/usr/games/lbreakout2"
#!/bin/sh -e
if [ "$1" = "configure" ] && ! [ -f /var/games/lbreakout2.hscr ]
then
rm -f /var/games/lbreakout2.hscr
cp /usr/share/games/lbreakout2/lbreakout2.hscr.blank /var/games/lbreakout2.hscr
chown root.games /var/games/lbreakout2.hscr
chmod 664 /var/games/lbreakout2.hscr
fi
#DEBHELPER#
\ No newline at end of file
#!/bin/sh -e
if [ "$1" = "purge" ]
then
rm -f /var/games/lbreakout2.hscr
fi
#DEBHELPER#
#!/usr/bin/make -f
# GNU copyright 1997 to 1999 by Joey Hess.
# copyright 2000 Daniel Burrows
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# This is the debhelper compatability version to use.
export DH_COMPAT=2
configure: configure-stamp
configure-stamp:
dh_testdir
./configure --prefix=/usr --bindir=\$${prefix}/games --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --with-highscore-path=/var/games --with-doc-path=\$${prefix}/share/doc
touch configure-stamp
build: configure-stamp build-stamp
build-stamp:
dh_testdir
$(MAKE)
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
-$(MAKE) distclean
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
$(MAKE) install DESTDIR=`pwd`/debian/lbreakout2
# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
dh_installdocs
dh_installexamples
dh_installmenu
dh_installcron
dh_installmanpages
dh_installinfo
dh_installchangelogs ChangeLog
dh_link
dh_strip
dh_compress
dh_fixperms
chown root.games `pwd`/debian/lbreakout2/usr/games/lbreakout2
chmod g+s `pwd`/debian/lbreakout2/usr/games/lbreakout2
mv `pwd`/debian/lbreakout2/var/games/lbreakout2.hscr `pwd`/debian/lbreakout2/usr/share/games/lbreakout2/lbreakout2.hscr.blank
chown root.games `pwd`/debian/lbreakout2/usr/games/lbreakout2
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure
http://ftp1.sourceforge.net /lgames/ lbreakout2-([0-9.]*)\.tar\.gz debian
......@@ -40,7 +40,7 @@ Config config;
void config_check_dir()
{
char level_dir[512];
sprintf( config.dir_name, "%s/%s", (getenv( "HOME" )?getenv( "HOME" ):"."), CONFIG_DIR_NAME );
snprintf( config.dir_name, sizeof(config.dir_name)-1, "%s/%s", (getenv( "HOME" )?getenv( "HOME" ):"."), CONFIG_DIR_NAME );
/* test and create .lgames */
if ( opendir( config.dir_name ) == 0 ) {
fprintf( stderr, "couldn't find/open config directory '%s'\n", config.dir_name );
......
......@@ -725,7 +725,7 @@ int editor_init( char *file_name )
{
FILE *file = 0;
/* set full file name */
sprintf( edit_file_name, "%s/%s/lbreakout2-levels/%s", (getenv( "HOME" )?getenv( "HOME" ):"."), CONFIG_DIR_NAME, file_name );
snprintf( edit_file_name, sizeof(edit_file_name)-1, "%s/%s/lbreakout2-levels/%s", (getenv( "HOME" )?getenv( "HOME" ):"."), CONFIG_DIR_NAME, file_name );
/* test this file for write access. use append to keep contents */
if ( ( file = fopen( edit_file_name, "a" ) ) == 0 ) {
fprintf( stderr, "Permission to write to file '%s' denied.\n", edit_file_name );
......
......@@ -561,7 +561,7 @@ int game_init()
/* load level */
setname = levelset_names[config.levelset_id];
if ( levelset_names[config.levelset_id][0] == '~' ) {
sprintf( path, "%s/%s/lbreakout2-levels", (getenv( "HOME" )?getenv( "HOME" ):"."), CONFIG_DIR_NAME );
snprintf( path, sizeof(path)-1, "%s/%s/lbreakout2-levels", (getenv( "HOME" )?getenv( "HOME" ):"."), CONFIG_DIR_NAME );
setname++;
}
else
......
......@@ -220,7 +220,7 @@ void levelsets_load_names()
/* create dynamic list */
names = list_create( LIST_NO_AUTO_DELETE, NO_CALLBACK );
/* parse home directory */
sprintf( level_dir, "%s/%s/lbreakout2-levels", (getenv( "HOME" )?getenv( "HOME" ):"."), CONFIG_DIR_NAME );
snprintf( level_dir, sizeof(level_dir)-1, "%s/%s/lbreakout2-levels", (getenv( "HOME" )?getenv( "HOME" ):"."), CONFIG_DIR_NAME );
text = get_file_list( level_dir, 0, level_dir );
for ( i = 0; i < text->count; i++ ) {
/* filter stuff */
......
......@@ -106,7 +106,7 @@ int main(int argc, char *argv[])
/* new set? */
if ( strequal( "<CREATE SET>", levelset_home_names[config.levelset_home_id] ) ) {
editor_file = calloc( 16, sizeof( char ) );
sprintf( path, "%s/%s/lbreakout2-levels", getenv( "HOME" ), CONFIG_DIR_NAME );
snprintf( path, sizeof(path)-1, "%s/%s/lbreakout2-levels", getenv( "HOME" ), CONFIG_DIR_NAME );
if ( !enter_string( font, "Set Name:", editor_file, 12 ) || !file_check( path, editor_file, "w" ) ) {
free( editor_file );
break;
......
......@@ -126,7 +126,7 @@ void cb_delete_set()
return;
}
/* get file name + path */
sprintf( fname, "%s/%s/lbreakout2-levels/%s", getenv( "HOME" ), CONFIG_DIR_NAME, levelset_home_names[config.levelset_home_id] );
snprintf( fname, sizeof(fname)-1, "%s/%s/lbreakout2-levels/%s", getenv( "HOME" ), CONFIG_DIR_NAME, levelset_home_names[config.levelset_home_id] );
remove( fname );
levelsets_load_names(); /* reinit name lists and configs indices */
/* reassign these name lists as position in memory has changed */
......
......@@ -115,7 +115,7 @@ SDL_Surface* theme_load_surf( char *name )
{
SDL_Surface *surf = 0;
char path[512];
sprintf( path, "%s/.lgames/lbreakout2-themes/%s/%s", getenv( "HOME" ), theme_name, name );
snprintf( path, sizeof(path)-1, "%s/.lgames/lbreakout2-themes/%s/%s", getenv( "HOME" ), theme_name, name );
if ( strequal( theme_name, "Default" ) || ( surf = load_surf( path, SDL_SWSURFACE | SDL_NONFATAL ) ) == 0 )
surf = load_surf( name, SDL_SWSURFACE );
return surf;
......@@ -125,7 +125,7 @@ Sound_Chunk* theme_load_sound( char *name )
{
Sound_Chunk *sound = 0;
char path[512];
sprintf( path, "%s/.lgames/lbreakout2-themes/%s/%s", getenv( "HOME" ), theme_name, name );
snprintf( path, sizeof(path)-1, "%s/.lgames/lbreakout2-themes/%s/%s", getenv( "HOME" ), theme_name, name );
if ( strequal( theme_name, "Default" ) || ( sound = sound_chunk_load( path ) ) == 0 )
sound = sound_chunk_load( name );
return sound;
......@@ -135,7 +135,7 @@ Font* theme_load_font_fixed( char *name, int start, int len, int width )
{
Font *font = 0;
char path[512];
sprintf( path, "%s/.lgames/lbreakout2-themes/%s/%s", getenv( "HOME" ), theme_name, name );
snprintf( path, sizeof(path)-1, "%s/.lgames/lbreakout2-themes/%s/%s", getenv( "HOME" ), theme_name, name );
if ( strequal( theme_name, "Default" ) || ( font = load_fixed_font( path, start, len, width, SDL_SWSURFACE | SDL_NONFATAL ) ) == 0 )
font = load_fixed_font( name, start, len, width, SDL_SWSURFACE );
return font;
......@@ -201,7 +201,7 @@ void theme_load_bkgnds()
struct stat filestat;
char path[512];
char fname[512];
sprintf( fname, "%s/.lgames/lbreakout2-themes/%s/back0.png", getenv( "HOME" ), theme_name );
snprintf( fname, sizeof(fname)-1, "%s/.lgames/lbreakout2-themes/%s/back0.png", getenv( "HOME" ), theme_name );
if ( strequal( theme_name, "Default" ) || stat( fname, &filestat ) == -1 ) {
/* use original backs */
bkgnd_count = BACK_COUNT;
......@@ -209,7 +209,7 @@ void theme_load_bkgnds()
}
else {
/* use new backs */
sprintf( path, "%s/.lgames/lbreakout2-themes/%s", getenv( "HOME" ), theme_name );
snprintf( path, sizeof(path)-1, "%s/.lgames/lbreakout2-themes/%s", getenv( "HOME" ), theme_name );
bkgnd_count = -1;
do {
bkgnd_count++;
......@@ -248,7 +248,7 @@ void theme_get_list()
/* auxilary list */
list = list_create( LIST_NO_AUTO_DELETE, NO_CALLBACK );
/* theme directory */
sprintf( dir, "%s/.lgames/lbreakout2-themes", getenv( "HOME" ) );
snprintf( dir, sizeof(dir)-1, "%s/.lgames/lbreakout2-themes", getenv( "HOME" ) );
if ( ( hdir = opendir( dir ) ) != 0 ) {
while ( ( entry = readdir( hdir ) ) ) {
if ( entry->d_name[0] == '.' )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment