LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-09-2006, 07:09 PM   #1
jimsproch
Member
 
Registered: Oct 2004
Posts: 38

Rep: Reputation: 15
Exclamation Getting the home directory of current user in c++


original post removed

Last edited by jimsproch; 08-09-2010 at 06:21 PM.
 
Old 04-09-2006, 07:13 PM   #2
jimsproch
Member
 
Registered: Oct 2004
Posts: 38

Original Poster
Rep: Reputation: 15
original post removed

Last edited by jimsproch; 08-09-2010 at 06:20 PM.
 
Old 04-10-2006, 01:15 AM   #3
addy86
Member
 
Registered: Nov 2004
Location: Germany
Distribution: Debian Testing
Posts: 332

Rep: Reputation: 31
I'm not sure, but eventually HOME might be redefined by the current user. I don't know if this could be a problem, maybe it's even desirable.

Anyway, another solution is getpwent(3)
 
  


Reply

Tags
c++, directory, home, linux, rocks



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Limit a user to their home directory redgore Linux - General 2 08-04-2009 10:45 AM
jail user to /home/user directory confused_user Linux - Security 12 03-15-2006 09:56 AM
How to get home directory of a login user lucky6969b Programming 5 02-20-2006 01:46 AM
Restricting user home directory ? chuck77 Linux - General 3 11-27-2001 06:44 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration