lug-bg: Linux normal path

2004-11-24 Thread Aleksandar Valchev
 C++,   
  
 ..  ///homeblabla/// - /home/blabla. 

  ?

A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html



Re: lug-bg: Linux normal path

2004-11-24 Thread Nikolay Mitev

Aleksandar Valchev wrote:
 C++, 
 ..  ///homeblabla/// - /home/blabla. 

  ?
 

-  Boost.Filesystem.   .
 - path::normalize.
http://boost.org/libs/filesystem/doc/path.htm#normalize
cheers,
face

A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html



Re: lug-bg: Linux normal path

2004-11-24 Thread Krasimir Kazakov
Aleksandar Valchev wrote:
 C++, 
 ..  ///homeblabla/// - /home/blabla. 

  ?
 

Edinstveno se seshtam za unix comandata , nadqvam se da ti svurshi rabota :)
bash-3.00# readlink -f ///homeblabla///
/home/blabla
bash-3.00#
--
Regards: Krasimir Kazakov

A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html



Re: lug-bg: Linux normal path

2004-11-24 Thread Peter Pentchev
On Wed, Nov 24, 2004 at 11:49:37AM +0200, Aleksandar Valchev wrote:
  C++, 
  ..  ///homeblabla/// - /home/blabla. 
 
   ?

-...
  APR (Apache Portable Runtime)   ,  
 -  -  ,
  :)

  :) ,   ,
  ...

   :
- escape- \
- quote-  -'  
-/../

   ,.

  1.  , escape-  quote-
  ,  2.  ,
escape-  quote-   .

...   parse-  user input,   
  ,  
, .  
,, 
  \ ,
  ,  .
** 
 - user input,  
   ,  
quote-., ,   
.

  ...   chdir(2),
mkdir(2), opendir(2)   , ,
  **  exec*(3)  Perl-   exec()
   , escape/quote- .  
,system(3) (
 -   ),   Perl/PHP exec()/passthru()  
 (   system(3)),   glob(3) 
Perl- glob(),   ,  
,  .  , ,  
  ,  , 
   escape- ** ,, , 
  - , ,
 , ,   
   ,  ,
  .

 SQL , -,  
   -... ,  
   -  , , -
,   - .

  ,
  -
  %2E  amp;  #1031; 
 multibyte characters, character entities
.:)

-   
 .   
 ,/../,  - 
 -'..' **  
   ,  
   ** .  
 ,  4-5  
  MS IIS  
   ,  ,   
,  ,   
-/.%2e/ 
  ,, /..%00/,   
   Unicode,
 /..%2F  ...**   !

   ,  ,   
 -,  
  ,, 
. , 
  ,  Apache Portable Runtime (apr) -
http://apr.apache.org/ -   ,
 ,  Apache
. 'Filepath Manipulation Functions' -
http://apr.apache.org/docs/apr/group__apr__filepath.html -   
  :)

,


-- 
Peter Pentchev  [EMAIL PROTECTED][EMAIL PROTECTED][EMAIL PROTECTED]
PGP key:http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
This inert sentence is my body, but my soul is alive, dancing in the sparks of 
your brain.


pgpQ6gIOCett1.pgp
Description: PGP signature


Re: lug-bg: Linux normal path

2004-11-24 Thread Aleksandar Valchev
,.   
.   . 
,   
 , :).

   . 
  , 
 .,  
  
   . ..   
:

/home/blabla/ 
/home/blabla/users/
/home/blabla/users/ivancho
/home/blabla/users/petkancho
/home/blabla/conf/

  

(  ),
/home/blabla/users. 
 
 .. 
 
 mariika
  
 /home/blabla/users/mariika,  maiika  
  /mariika, 
 ,   
.   mariika 
   
, 
   
/home/blabla/users/. 
 
 ivancho 
(/home/blabla/users/ivancho),  
   
 mariika  
.mariika  
  ?

A mariika  ///mariika   ///
 
  ???

 ,



A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html



Re: lug-bg: Linux normal path

2004-11-24 Thread Peter Pentchev
On Wed, Nov 24, 2004 at 01:25:34PM +0200, Aleksandar Valchev wrote:
 ,.   .   . 
 ,, :).
 
.   , 
  .,
. ..   :
 
 /home/blabla/ 
 /home/blabla/users/
 /home/blabla/users/ivancho
 /home/blabla/users/petkancho
 /home/blabla/conf/
 
   
 (  ),/home/blabla/users. 

   , -   , 
   ,  
,  ,chroot 
/home/blabla/users.   chroot(/home/blabla/users)  
,   ,  
/home/blabla/users - ..  , 
: /mariika/home/blabla/users/mariika.

 .   ,  chroot   
user ID 0, .. root, 
  root, chroot  
  .,chroot,
  -   
// ,,   
/home/blabla/users.  
-  ,
   (  
  ..),   (
   parse-)  ,   chroot-   
- . ,   ,   
,  -  
   ,.. :)

,


-- 
Peter Pentchev  [EMAIL PROTECTED][EMAIL PROTECTED][EMAIL PROTECTED]
PGP key:http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
This sentence every third, but it still comprehensible.


pgpPvCkP3CxUC.pgp
Description: PGP signature


Re: lug-bg: Linux normal path

2004-11-24 Thread Aleksandar Valchev
 ,
   chroot(2) ? 
  google,  BIND, ftp  
..  
  .  man 2 chroot   
...

A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html