Re: Deleting a line from a file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 14 May 2014 21:27:06 +0530, Saket Sinha said:

>      char newFileName[PATH_MAX];

>      tabFileNew = setmntent(newFileName, "w");

And what is the new file name? You have random trash on the stack here.
(Note that this is C 101 - if you can't debug this on your own, you
probably shouldn't be messing with filesystem code until you have more
C experience)


Attachment: pgpBxdtG1n6n_.pgp
Description: PGP signature

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux