php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39265 The ext/session/mod_files.sh script is faulty (fix included)
Submitted: 2006-10-26 14:04 UTC Modified: 2006-11-03 13:19 UTC
From: michal dot taborsky at gmail dot com Assigned: iliaa
Status: Closed Package: Session related
PHP Version: 5.1.6 OS: Linux CentOS 4.4
Private report: No CVE-ID:
 [2006-10-26 14:04 UTC] michal dot taborsky at gmail dot com
Description:
------------
The script ext/session/mod_files.sh on our system fails:

[root@dc1-b103-app01 ~]# ./mod_files.sh /tmp/session/ 3 6
expr: syntax error
usage: ./mod_files.sh basedir depth

The reason being this line:

sh $0 $newpath `expr $2 - 1 $3`

It can be fixed easily:

sh $0 $newpath `expr $2 - 1` $3



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-03 13:19 UTC] iliaa@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Thu Apr 24 20:02:09 2014 UTC